- From: Melvin Carvalho <melvincarvalho@gmail.com>
- Date: Wed, 9 Apr 2014 12:37:43 +0200
- To: Dave Longley <dlongley@digitalbazaar.com>
- Cc: Web Payments <public-webpayments@w3.org>
Received on Wednesday, 9 April 2014 10:38:11 UTC
On 9 April 2014 06:45, Dave Longley <dlongley@digitalbazaar.com> wrote: > 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). > Thanks! > > > -- > Dave Longley > CTO > Digital Bazaar, Inc. > >
Received on Wednesday, 9 April 2014 10:38:11 UTC