h2jvm
Safe HaskellNone
LanguageGHC2021

H2JVM.Internal.Convert.Numbers

Description

Numeric conversions from high level representations to the JVM representations.

Synopsis

Documentation

toJVMFloat :: Float -> U4 Source #

Converts a Haskell float to the JVM representation.

toJVMLong :: Int64 -> (U4, U4) Source #

Converts a Haskell long to the JVM representation (two U4s), splitting the long into its high and low bits.

toJVMDouble :: Double -> (U4, U4) Source #

Converts a Haskell Double to the JVM representation (two U4s), splitting the value into its high and low bits.