Not a VM bug.
Reassigning to library ('language' would be a good fit too).
Removed Area-VM label.
Added Area-Library label.
Issue #916 has been merged into this issue.
This comment was originally written by stevenc...@gmail.com
This comment was originally written by jesse.ros...@gmail.com
Let me guess, you will add it later casing apps to crash. Java all over again.
This comment was originally written by ravi...@ravib.com
Please consider adding support for a Decimal type to Dart. It's crucial esp. for applications that deal with financial data. Thanks.
This comment was originally written by jn13...@gmail.com
Having a natively suported decimal is essential to any big-boy application. During our product discovery phase we are heavily weighing the ability to handle decimals since this is still a flaw for web development... in 2012.
This comment was originally written by casper...@gmail.com
This comment was originally written by briansmai...@gmail.com
As much as I thought Dart was fantastic (and still do), I didn't realise that num did not support decimal numbers. I realise that Dart must translate to JS, and I perhaps that is why there is no decimal type. As we all know, we need decimals for money. To code around this issue is a bad use of programmer resources, and is very inefficient. I think that if Dart wants respect as a language, it needs decimal types. I guess internally it would be an int with the precision stored. If this has not been addressed PLEASE do. I can't see why this could not be compatible with JS. There is probably only one other thing that I dislike about Dart (thus far) - mostly it's great including the ide/editor.
This comment was originally written by @a14n
Until that issue is fixed, you can use the 'decimal' package I've just uploaded on pub ( http://pub.dartlang.org/packages/decimal )
This comment was originally written by briansm...@gmail.com
@Alexandre. Thanks for that info. I had written my own which is not as great as yours, but does what I need for currency. It appears plenty fast enough for client-side code (Stopwatch()). I'll be quite happy to throw it away when I presume decimal is implemented.
This comment was originally written by jesse.r...@gmail.com
I think It's time we admit the obvious joke that Dart has become. How many
years before you can get a working product out the door?
No decimal data type means Dart is a joke written by people that don't
support real applications.
Sad, but maybe if people start telling Google the true, they may take
their head out of their ass.
This comment was originally written by @ahmetaa
@jesse This is an issue tracker, not a place to vent or curse. Dart platform is being developed for maybe less than 2 years. I think current state of it is amazingly advanced comparing to other languages.
Besides, perhaps %1 of the applications rely on decimal types. And there are third party libraries available until it is implemented in Dart. Be patient.
This comment was originally written by george.moschovi...@gmail.com
Please add a decimal data type.
This comment was originally written by jesse.rose...@gmail.com
This comment was originally written by gursugu...@gmail.com
Could you please give us a timeframe like m4 or m5 for the implementation? I think the convenience of decimal operations are needed in more than 1% of applications.
This comment was originally written by charlie...@kissintelligentsystems.com
A native decimal data type is absolutely essential. Having worked in both the C# and Java worlds I can, it is something that is really important to developers. It really should be implemented as a native data type not via a Pub Package.
There is no plan to add decimals as numbers. We might eventually make a pub package (or take over Alexandre's if he is fine with that), though.
This will not happen before v1.
Added this to the Later milestone.
@florian no problem if it fits your needs.
This comment was originally written by briansma...@gmail.com
@florian. It would be good to know why not after 1.0. Compared to
everything else that has been implemented in Dart, decimal does not seem
overly difficult. While I'm sure Alexandre's code is great, it would be
good to know what stops decimal being implemented in the language. I do
understand to some extent the JS conversion problems, however people
currently live with the limitations in JS. Then again, I'm not paying the
bills. PS: I think what you guys have done to-date is tremendous.