Elektrine lite

← Feed

@sbeak@sopuli.xyz

Post #1889554

2026-02-10 23:14 UTC

2. Fair enough 3. Fair enough, but I'm talking about the data type "real" (which could technically be used to store whole numbers, but since Monopoly money doesn't have cents, we're assuming it's stored as integer data type rather than real data type) 4. You have a good point. 5. In many languages, array index -1 puts you on the end of array (the last item), -2 is second last, etc f. Is it? If it is then I'm just uninformed. 1 was the one in the title, and it's "f" since it's not data type related it's an extra one (6th letter in the alphabet)

Replies (1)

  • @SpaceNoodle@lemmy.world 2026-02-10 23:20

    f is hexadecimal for 15, which could have been more clever real is inherently unsuitable for human currencies since those are usually accounted for in cents or hundredths of cents, and floating-point rounding errors are not great for financial accountability, so rational formats with a denominator of 100 or 10,000 would be more suitable.

    Open ##1889556