Hacker News new | past | comments | ask | show | jobs | submit login

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$




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: