scalala / Scalala

Scalala has been superseded by dlwh/breeze. Scalala is a high performance numeric linear algebra library for Scala, with rich Matlab-like operators on vectors and matrices; a library of numerical routines; support for plotting.
http://groups.google.com/group/scalala
GNU Lesser General Public License v2.1
298 stars 30 forks source link

StorageTest fails in some Locales #35

Open nadezhin opened 12 years ago

nadezhin commented 12 years ago

scalala.Library.Storage.storetext prints doubles considering the default Locale. Russian Locale uses decimal comma instead of decimal point: "1,5" instead of "1.5" . scalala.Library.Storage.loadtext can't parse "1,5" and fails .

Possible fix: use String.format(Locale.ROOT, "%.15e", v) in scalala.Library.Storage.storetext .

afwlehmann commented 12 years ago

AFAIK the Storage trait/object are only temporary and will go away one day.

@dramage @dlwh Maybe mark Storage as deprecated?