Comment by flockonus

Comment by flockonus 9 hours ago

2 replies

What about units that cost sub-cent? For examples, I've seen private company stocks being $0.0001

Not sure why you'd need to make a note in the internal representation, vs. leave adapters to handle conversions.

bbor 9 hours ago

Not to speak for them, but I think you’ve understood the point exactly. You need to be able to support arbitrary precision, but that support needs to be intentional to avoid errors. And you have to record that decision somewhere if adapters are to correctly handle your outputs; why not in the unit name?

petesergeant 9 hours ago

If I understand their docs correctly, that’s equivalent to [USD/4 1]