[fixed] numeric[217/17] not working as expected

fschuett shared this problem 9 years ago
Answered

Hallo,

I use geogebra 4.4.7.0 and can not use numeric any more.

From the log:

------------------------------

17:41:59.132 DEBUG: geogebra.common.i.p.b.a[-1]: Numeric[217/17]

17:41:59.137 DEBUG: geogebra.a.a.a.b[-1]: giac input: [[ggbans:=(217)/(17)],when(dim(lname(ggbans))==0 || count_eq(unicode0176u,lname(ggbans))>0,evalf(ggbans),evalf(normal(ggbans)))][1]

17:41:59.140 DEBUG: geogebra.a.a.a.b[-1]: giac output: 12,76470588235

17:41:59.141 DEBUG: geogebra.common.i.p.b.a[-1]: 12,76470588235

17:41:59.150 ERROR: geogebra.common.i.j.o.g[-1]: GeoCasCell.computeOutput(), CAS eval: Numerisch[217 / 17]

error: Encountered " <COMMA> ", "" at line 1, column 3.

Was expecting one of:

-------------------------------

It looks like giac uses decimal comma, but geogebra expects decimal point.

I use openSUSE Linux 13.1 and Java 1.7.0. Do I have to change the locale for geogebra to work?


I'm confused.


Bye,

Frank

Comments (6)

photo
1

I investigated some more:


In germany locale is set to de_DE.UTF-8.


giac uses this locale and outputs 12,76


geogebra does not use the locale and expects 12.76


I could work around this problem by explicitly setting


LC_NUMERIC=en_US.UTF-8


I guess geogebra and giac should use same locale settings.


Bye,

Frank

photo
1

Please try version 4.9.243.0 which should include your fix:

http://download.geogebra.or...

photo
1

Thank you,

2.9.243 works as expected.


Will this fix be included in a 4.4.x release?


Bye, Frank

photo
1

Sorry, typo. 4.9.243 !!!

photo
1

Yes: please try 4.4.9.0

photo
1

I tried 4.4.10. The bug is gone.


Thank you.

© 2023 International GeoGebra Institute