Ok, today's Rust parsing pop-quiz: What do `0x1f64` and `0x1f32` print out?
`0x1.ffffp+1023_f64` is crazy syntax; does it have history or come from another language? What's that P doing there?
-
-
(They're all writing DPD libraries -- https://en.wikipedia.org/wiki/Densely_packed_decimal#Encoding … -- which is #1 world's best conversation-killer)
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
The six people on earth who need to write decimal FP literals in hex are _really_ interested in explaining why to you.
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
Indicates _p_ower of 2, analogy w/ _e_xponent of 10 in 1.5e7 (Tho I guess it should really be a _p_ower of 16?)
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
If it makes you feel better (or worse), _decimal FP_ literals are often denoted 123.4m ("m" for "money"!)
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
Some prefer 123.4d, but then you're back in ambiguity land if you let users write their decimal FP literals in hex.
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.