by sysrpl on 7/17/24, 10:57 AM with 15 comments
by leejoramo on 7/17/24, 1:49 PM
by moefh on 7/17/24, 1:53 PM
There's some ambiguity about what exactly "mantissa" means in the representation of a floating point number, to the point where some people recommend avoiding it[2] (for example, the IEEE standard for floating point uses "significand" instead).
But whatever mantissa means, it's exactly not (like the page says[1]) what's "used to raise or lower a floating point literal numbers by factors of 10", that's the exponent. The mantissa, if anything, is the other part of the number, that is, what's being multiplied by the factors of 10 (but it's complicated, the wikipedia[2] page explains it).
[1] https://www.getlazarus.org/learn/language/lexical/#float_lit...
[2] https://en.wikipedia.org/wiki/Significand (section "Floating-point mantissa")
by 01HNNWZ0MV43FF on 7/17/24, 12:38 PM
by nu11ptr on 7/17/24, 1:11 PM
by mark_l_watson on 7/17/24, 1:04 PM
I used UCSD Pascal on one very large project: my Go playing program Honnibo Warrior.
by LeFantome on 7/17/24, 5:31 PM
They are buried under “Generic Constaints”.
https://www.getlazarus.org/learn/language/lexical/#generic_c...
For me, a BNF would be so much easier. It looks like a fairly easy syntax to parse.
Maybe I will try to create a toy compiler sometime.
by katzenversteher on 7/17/24, 12:52 PM
by mosburger on 7/17/24, 1:58 PM
by signaru on 7/17/24, 1:53 PM