Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I didn't say that json can represent all rational numbers. I said that all json numbers have an obvious interpretation as a rational number.

So far you haven't really shown an example of a json number which has an ambiguous or ill defined interpretation.

Maybe you mean that json numbers may not fit into 32 bit integers or double floats. That's certainly true but I don't see it as a deficiency in the standard. There is no limit on the size of strings in json, so why have a limit on numbers?

 help



>> A given programming language may not have a built in representation for rational numbers in general.

Why did you say this?




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

Search: