Skip to content

Added Missing floating-point Kapacity operator support#5

Merged
DeveloprOfThings merged 1 commit intomainfrom
4-missing-floating-point-kapacity-operator-support
Mar 16, 2026
Merged

Added Missing floating-point Kapacity operator support#5
DeveloprOfThings merged 1 commit intomainfrom
4-missing-floating-point-kapacity-operator-support

Conversation

@DeveloprOfThings
Copy link
Owner

  • Added comprehensive operator overloads for Double and Float types in the Kapacity class, including safe division with validation for zero, NaN, and infinity.

  • Expanded Long and Int operator overloads for addition, subtraction, multiplication, and division.

  • Updated README.md to document safe dimensional math, memory-safe buffer allocation (toByteArray, toUByteArray), and support for binary unit aliases (e.g., mebibyte, kibibyte).

  • Added KapacityOperatorTest to verify division behavior and exception handling for floating-point scalars.

  • Switched composeApp to use the kapacity.io library dependency instead of a local project reference.

  • Updated project version to 0.9.9-beta06 in version catalog and adjusted README.md examples.

…es in the `Kapacity` class, including safe division with validation for zero, NaN, and infinity.

- Expanded `Long` and `Int` operator overloads for addition, subtraction, multiplication, and division.
- Updated `README.md` to document safe dimensional math, memory-safe buffer allocation (`toByteArray`, `toUByteArray`), and support for binary unit aliases (e.g., `mebibyte`, `kibibyte`).
- Added `KapacityOperatorTest` to verify division behavior and exception handling for floating-point scalars.
- Switched `composeApp` to use the `kapacity.io` library dependency instead of a local project reference.
- Updated project version to `0.9.9-beta06` in version catalog and adjusted `README.md` examples.
@DeveloprOfThings DeveloprOfThings self-assigned this Mar 16, 2026
@DeveloprOfThings DeveloprOfThings added the enhancement New feature or request label Mar 16, 2026
@DeveloprOfThings DeveloprOfThings linked an issue Mar 16, 2026 that may be closed by this pull request
@DeveloprOfThings DeveloprOfThings merged commit a72cc8a into main Mar 16, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Missing floating-point Kapacity operator support.

1 participant