sergiotaborda / lense-lang

The Lense Language Compiler
1 stars 0 forks source link

Add Numbers #16

Closed sergiotaborda closed 7 years ago

sergiotaborda commented 8 years ago

Add support for Natural, Integer, Rational, Complex and Imaginary numbers. Make Naturals without limit (can be as big as the runtime can handle) Make Integer without limit (can be as big as the runtime can handle) Make Rational without limit (can be as big as the runtime can handle)

Add Decimal for handling floating point implementations. Only used when asked for.

Allow for literals like

Complex c = 0.3 + 4i ; Rational r = 3 / 4;