Handbook
Glossary
rational-power-of-two ( exponent -- value )
Vocabulary
math
.
floats
.
small
.
bfloat
.
private
Inputs
exponent
an
object
Outputs
value
an
object
Definition
USING:
kernel
math
;
IN:
math.floats.small.bfloat.private
:
rational-power-of-two
( exponent -- value )
dup
0
<
[
neg
2^
recip
]
[
2^
]
if
;