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

In my opinion, the best solution to these issues is to:

1. Declare numbers as numbers in the configuration language. E.g. "decimal(1e1000)".

2. Parse declared numbers with a lossless format like Python's decimal.Decimal.

3. Let users decide at their own risk if they want to convert to a lossy format like float.



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

Search: