about:numbers
Kiezellisp offers integers, rationals, floating point numbers and complex numbers.
The standard integer types System.Int32 etc and System.Numerics.BigInteger.
make-html > 1111111111
it: 1111111111
make-html > :d
#s( :type "System.Int32"
:value 1111111111 )
make-html > (* it it)
it: 1234567900987654321
make-html > :d
#s( :type "System.Int64"
:value 1234567900987654321 )
make-html > (* it it)
it: 1524157902149062642981252857789971041
make-html > :d
#s( :members #s( :is-even false
:is-one false
:is-power-of-two false
:is-zero false
:sign 1 )
:type "System.Numerics.BigInteger"
:value 1524157902149062642981252857789971041 )
The type BigRational.
make-html > 3/4
it: 3/4
make-html > :d
#s( :members #s( :denominator 4
:numerator 3
:sign 1 )
:type "Numerics.BigRational"
:value 3/4 )
make-html > (* 4 it)
it: 3
make-html > :d
#s( :type "System.Int32"
:value 3 )
The types System.Float, System.Double and System.Decimal. The latter
is the preferred type.
make-html > 2.10
it: 2.10
make-html > :d
#s( :type "System.Decimal"
:value 2.10 )
make-html > #c(3 4)
it: #c(3 4)
make-html > :d
#s( :members #s( :imaginary 4
:magnitude 5
:phase 0.9272952180016122
:real 3 )
:type "System.Numerics.Complex"
:value #c(3 4) )