Live data from Hacker News

Flaky: datatypes for real world quantities

dimaborzov.com

41–42 of 42 posts

Re: Flaky: datatypes for real world quantities

#41
post #4

What we need is an open-source alternative of Mathematica's core language.

Common Lisp has a robust and comprehensive numerics facility. Poking around the CLHS and reading about ratios, fixnums, bignums, etc., will lead you to the conclusion that you can get your numeric work done (albeit in many cases much more slowly than you would like).

Add one of the pattern matching and term rewriting packages and you'll be very close to the foundation of the core of Mathematica. It will be a SMOP and adding to the library of facts enabling recognition of reducible terms.

Re: Flaky: datatypes for real world quantities

#42
post #38
post #6

> Floating point datatype is the de-facto standard for real world quantities. Whether it is a banking account [...] Is there any bank which uses floating point for accounting?

A huge number of ecommerce sites do. (Such as almost every site based on ATG/Oracle Commerce) Most banking systems predate standardized FP and use fixed decimal representations.

I can see them being used by the quants for fast pricing. But really, for accounting? Where do the missing cents go?
Post reply on HN