Skip to content

io7m-com/junsigned

Repository files navigation

junsigned

Maven Central Maven Central (snapshot) Codecov Java Version

com.io7m.junsigned

JVM Platform Status
OpenJDK (Temurin) Current Linux Build (OpenJDK (Temurin) Current, Linux)
OpenJDK (Temurin) LTS Linux Build (OpenJDK (Temurin) LTS, Linux)
OpenJDK (Temurin) Current Windows Build (OpenJDK (Temurin) Current, Windows)
OpenJDK (Temurin) LTS Windows Build (OpenJDK (Temurin) LTS, Windows)

junsigned

Functions to convert unsigned int/long values to/from float/double values.

Features

  • Functions to convert unsigned int/long values to/from float/double values.
  • Unsigned modulus implementations.
  • Unsigned variants of jranges functions and types.
  • High coverage test suite.
  • OSGi-ready
  • JPMS-ready
  • ISC license.

Usage

Use the UnsignedDouble class to convert from various integer types to double values.

Use the UnsignedFloat class to convert from various integer types to float values.

Use the UnsignedLong class to perform unsigned modulus operations on long values.

Use the UnsignedInt class to perform unsigned modulus operations on int values.