Handbook
Glossary
/f ( x y -- z )
Factor handbook
»
The language
»
Numbers
»
Floats
Prev:
>float ( x -- y )
Next:
Bitwise operations on floats
Vocabulary
math
Inputs
x
a
real
y
a
real
Outputs
z
a
float
Word description
Divides
x
by
y
, representing the result as a floating point number.
See also
Division by zero
Definition
IN:
math
MATH:
/f
( x y -- z )
foldable
flushable
Methods
USING:
kernel.private
math
math.integers.private
;
M:
bignum
/f
{
bignum
bignum
}
declare
bignum/f
;
USING:
math
math.complex.private
;
M:
complex
/f
[
/f
]
complex/
;
inline
USING:
kernel
kernel.private
math
math.integers.private
;
M:
fixnum
/f
{
fixnum
fixnum
}
declare
2dup
[
abs
bignum/f-threshold
>=
]
either?
[
bignum/f
]
[
fixnum/f
]
if
;
inline
USING:
math
math.private
;
M:
float
/f
float/f
;
inline
USING:
math
math.ratios.private
;
M:
ratio
/f
scale
/f
;