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

Swi-Prolog (listed int he article) also supports rationals:

  ?- A is rationalize(0.1 + 0.2), format('~50f~n', [A]).
  0.30000000000000000000000000000000000000000000000000
  A = 3 rdiv 10.


Consider applying for YC's Winter 2026 batch! Applications are open till Nov 10

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

Search: