News for hackers. Stuff that matters.
Re:Same Stop: Life after 26 years as a programmer for Apple by dolmen on Monday May 22, 2023 @09:00AM (#36030878)
You have to understand that float are negative powers of 2 and that conversion from decimal is not as straightforward as for integer: conversion from decimal often leads to loss of precision contrary to what happens for integers.
Re:Same Stop: Life after 26 years as a programmer for Apple by thfuran on Monday May 22, 2023 @09:50AM (#36031465)
You don't need to know anything about how they're represented to know they can't represent all decimal values.