News for hackers. Stuff that matters.
Re:GNU Units by Qem on Thursday August 03, 2023 @12:47PM (#36988309)
> The mistake there was that they were unaware that they had to make the unit conversion, not that they did it wrong.

I think the root cause here was continued use of medieval units, instead of just standardizing on the metric system as it's already done around nearly the entire world.

Re:GNU Units by fest on Thursday August 03, 2023 @01:08PM (#36988632)
Even if it was all metric, in embedded systems you often have to deal with the same measurements in different units, like angles in radians, degrees, centidegrees, length in mm, m, cm, due to various reasons (mostly historical, like integer math being faster than floating point math).

It is getting less frequent in modern code bases that target 32-bit MCUs with hardware-floating point support, but converting large codebases

Re:GNU Units by gumby on Thursday August 03, 2023 @06:18PM (#36992825)
> Even if it was all metric, in embedded systems you often have to deal with the same measurements in different units, like angles in radians, degrees, centidegrees, length in mm, m, cm, due to various reasons (mostly historical, like integer math being faster than floating point math).

It’s also cultural - different fields use different SI units for historical or practical reasons.

My second year at MIT I was in a program (16.001 & 2) that had different classes using cgs, mks, and mills. They all met in the same classroom (different times of course!), so there was no spacial reminder. But we all survived.

Re:GNU Units by extraduder_ire on Thursday August 03, 2023 @02:14PM (#36989576)
Have you ever accidentally set your calculator to gradians? We were warned about it when doing trigonometry in school, the first time we had to go between degrees and radians.