Talk:Getting the number of decimal places: Difference between revisions

Line 62:
 
:: Oh yes indeed, by that definition I'd have to say the FreeBASIC, Haskell, Java, Kotlin, Ring, RPL (probably), Sidef entries are all equally "wrong". Personally I want to say that 12.3450 should have 3 decimal places, even though my own entry shows 4 for "12.3450", but in reality 12.345 is held as ~12.3450000000000006 in a 64-bit IEE754 float, and as ~12.34500000000000000024 in an 80-bit float, so that would be 16 and 20 decimals, at least in some "sense". Stupid task. Anyway, you (by which I mean Peak) either have to be consistent and badger everyone, or no-one, or better yet fix the stupid task description (after discussing it here first). --[[User:Petelomax|Petelomax]] ([[User talk:Petelomax|talk]]) 16:08, 20 March 2023 (UTC)
 
:::Well, stupid or not, the task is what it is. As the original author hasn't been around lately, I've fixed the C/C++ entries using strings rather than doubles as there's no way those languages can distinguish between 12.345 and 12.3450 otherwise. --[[User:PureFox|PureFox]] ([[User talk:PureFox|talk]]) 17:56, 20 March 2023 (UTC)
9,476

edits