GNU Smalltalk Library Reference: Float-coercing

Next: , Previous: , Up: Float [Index]


1.80.6 Float: coercing

asExactFraction

Convert the receiver into a fraction with optimal approximation, but with usually huge terms.

asFraction

Convert the receiver into a fraction with a good (but undefined) approximation

truncated

Convert the receiver to an Integer. Only used for LargeIntegers, there are primitives for the other cases.

AltStyle によって変換されたページ (->オリジナル) /