News for hackers. Stuff that matters.
Re:Show HN: NoteCalc by vageli on Monday December 21, 2020 @11:49AM (#25496651)
Your comment made me realize that most unit notation I'm familiar with has the unit as a suffix, with currency being the only standout that comes to mind.
Re:Show HN: NoteCalc by roywiggins on Monday December 21, 2020 @12:02PM (#25496803)
It depends on the currency / country, too. Lots of countries put the currency afterwards, even "¢" comes after. $ and £ come before, but € ends up moving depending on the language.

https://en.wikipedia.org/wiki/Language_and_the_euro#Written_...

Re:Show HN: NoteCalc by gorkish on Monday December 21, 2020 @12:57PM (#25497424)
Binary, ocatal and hexidecimal literals often are indicated with prefixes: 0b, 0 and 0x respectively. There are probably other esoteric cases that I can't think of off the top of my head. "Qty" is often prefixed, for instance. It's a complicated problem for a natural language calculator, to be sure. Here are a couple examples of ways to represent four thousand Canadian dollars that you might encounter and have no trouble interpreting as a human. This could be a good target for an ML tokenizer...

-$4000CAD

CA$-4,000.00

4.000,00CAD$