toggle menu
korge-root
5.1.0
common
switch theme
search in API
korge-foundation
/
korlibs.number
/
Half
/
Companion
Companion
object
Companion
Members
Properties
FLOAT16_EXPONENT_BASE
Link copied to clipboard
const
val
FLOAT16_EXPONENT_BASE
:
Int
=
15
Functions
float
To
Int
Bits
Link copied to clipboard
fun
floatToIntBits
(
value
:
Float
)
:
UShort
from
Bits
Link copied to clipboard
fun
fromBits
(
bits
:
Int
)
:
Half
fun
fromBits
(
bits
:
Short
)
:
Half
fun
fromBits
(
bits
:
UShort
)
:
Half
get
Float
Exp
Link copied to clipboard
fun
getFloatExp
(
bits
:
Int
)
:
Int
get
Float
Mantissa
Link copied to clipboard
fun
getFloatMantissa
(
bits
:
Int
)
:
Int
get
Float
Sign
Link copied to clipboard
fun
getFloatSign
(
bits
:
Int
)
:
Boolean
get
Half
Exp
Link copied to clipboard
fun
getHalfExp
(
bits
:
UShort
)
:
Int
get
Half
Mantissa
Link copied to clipboard
fun
getHalfMantissa
(
bits
:
UShort
)
:
Int
get
Half
Sign
Link copied to clipboard
fun
getHalfSign
(
bits
:
UShort
)
:
Boolean
int
Bits
To
Float
Link copied to clipboard
fun
intBitsToFloat
(
word
:
UShort
)
:
Float
pack
Float
Link copied to clipboard
fun
packFloat
(
exp
:
Int
,
mantissa
:
Int
,
sign
:
Boolean
)
:
Int
pack
Half
Link copied to clipboard
fun
packHalf
(
exp
:
Int
,
mantissa
:
Int
,
sign
:
Boolean
)
:
UShort