- From: Dave Longley <dlongley@digitalbazaar.com>
- Date: Wed, 09 Apr 2014 00:45:32 -0400
- To: public-webpayments@w3.org
On 04/08/2014 10:27 PM, Anders Rundgren wrote: > 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 > > Yes, and xsd:decimal is a decimal number of arbitrary precision, it is *not* a double or float (see xsd:double or xsd:float for doubles and floats, respectively). -- Dave Longley CTO Digital Bazaar, Inc.
Received on Wednesday, 9 April 2014 04:45:56 UTC