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


1.148.3 ScaledDecimal: coercion

asCNumber

Convert the receiver to a kind of number that is understood by the C call-out mechanism.

asFloatD

Answer the receiver, converted to a FloatD

asFloatE

Answer the receiver, converted to a FloatE

asFloatQ

Answer the receiver, converted to a FloatQ

asFraction

Answer the receiver, converted to a Fraction

ceiling

Answer the receiver, converted to an Integer and truncated towards +infinity.

coerce: aNumber

Answer aNumber, converted to a ScaledDecimal with the same scale as the receiver.

fractionPart

Answer the fractional part of the receiver.

generality

Return the receiver’s generality

integerPart

Answer the fractional part of the receiver.

truncated

Answer the receiver, converted to an Integer and truncated towards -infinity.