- From: Anders Rundgren <anders.rundgren.net@gmail.com>
- Date: Wed, 09 Apr 2014 04:27:16 +0200
- To: Melvin Carvalho <melvincarvalho@gmail.com>, Web Payments <public-webpayments@w3.org>
On 2014-04-09 01:15, Melvin Carvalho wrote: > I'm not 100% clear on this, but there's lots of articles around the internet about the dangers of this e.g. > > http://stackoverflow.com/questions/3730019/why-not-use-double-or-float-to-represent-currency > > Is it safe to use decimals in the commerce ontology? > > https://web-payments.org/specs/source/vocabs/commerce.html#amount Yes, it is. Both database engines (SQL Server etc) and programming languages (java etc) features decimal data types for financial data. Other uses of decimal numbers is beyond my knowledge. Cheers, Anders
Received on Wednesday, 9 April 2014 02:27:59 UTC