NumericValue()
The number as a Haro number.
also written: Value · Number · NumbericValue
Basic examples (2)
o1 = new stzNumber("5")
? ring_type(o1.Number())NUMBER
run on 2026-10-02 04:23 inside the library at commit 0e72e2e2c; taken from 39_number.ring(opens in a new tab)
StzDecimals(3) # Change the program round and memorises it o1 = new stzNumber([ 981.123456701, :round = 5 ]) ? o1.Round() ? o1.NumericValue() # Sensitive to current on the program round, 3. ? o1.StringValue() # Rounded to the what is specified at the object level, 5.
5 981.123 981.12346
run on 2026-10-02 04:23 inside the library at commit 0e72e2e2c; taken from 49_round.ring(opens in a new tab)
Scope (2)
o1 = new stzNumber(12) o1 * Q(5) ? o1.NumericValue() o1 = new stzNumber(12) o1 * Q(5 * 4 * 2) ? o1.NumericValue() o1 = new stzNumber(12) o1 * Q([ 5, 4, 2 ]) ? o1.NumericValue()
60 480 480
run on 2026-10-02 04:23 inside the library at commit 0e72e2e2c; taken from 15_numericvalue.ring(opens in a new tab)
tiny = number("1e-20")
oTiny = new stzNumber(tiny)
# the digits are kept
? oTiny.Content()
# ...so the value is still positive
? oTiny.NumericValue() > 0
# ...and scaling it back recovers 1
? oTiny.NumericValue() * number("1e20")
oTiny.MultiplyBy(2)
# it is exact, because the content is a plain decimal the exact path can use
? oTiny.Content()
# ...and says so
? oTiny.IsExact()0.00000000000000000001 1 1 0.00000000000000000002 1
run on 2026-10-02 04:23 inside the library at commit 0e72e2e2c; taken from numeric_no_loss_narrated.ring(opens in a new tab)
The extensions of this method
Each extension, and whether it exists for this method; an extension that exists combines with the others (FindSTCS).
Every example is a test file of the library, run inside the library for this page; only those whose output kept every promise their file wrote are shown.
See also
- The class stzNumber
- The area's reference: Numeric & optimization
- The other methods in these examples: stzNumber.IsExact · stzNumber.MultiplyBy · stzNumber.Round · stzNumber.StringValue

