jack
(no subject)
Recent Entries
Archive
Reading
Network
Tags
Memories
Profile
(no subject)
Jun
.
5th
,
2025
01:25 pm
jack
Hm. I'm still not sure about writing `2.` but if you have to use floats then I think I came around to preferring to write `2.0` over writing `2`.
Flat
|
Top-Level Comments Only
no subject
Date:
2025-06-05 02:05 pm (UTC)
From:
simont
It's particularly awkward when you're talking about float literals in text and need to end a sentence with 2..
no subject
Date:
2025-06-05 08:45 pm (UTC)
From:
silveradept
I think I would prefer 2.0 for having less ambiguity than simply 2. Especially if talking about floating-point arithmetic.
no subject
Date:
2025-06-07 06:44 pm (UTC)
From:
andrewducker
Yes. It's clearer, and it looks like something a person might actually write as a number.
Previous Entry
Add Memory
Share This Entry
Next Entry
3 comments
Reply
Flat
|
Top-Level Comments Only
Active Recent Entries
1:
Dr Crab Robot Reaches the Exit
2:
Green Dragon beer garden afternoon, Next Sun (28 Sept)
3:
Bank Holiday Grantchester Picnic
4:
(no subject)
5:
(no subject)
no subject
Date: 2025-06-05 02:05 pm (UTC)no subject
Date: 2025-06-05 08:45 pm (UTC)no subject
Date: 2025-06-07 06:44 pm (UTC)