m2o2c2 icon indicating copy to clipboard operation
m2o2c2 copied to clipboard

Input Problem with Functions (only accept 0.xx not .xx)

Open HubbaHubbaHubba opened this issue 10 years ago • 0 comments

Hi Jim et. al.,

With the function section of the M2O2C2 it gave me an error with a rather simple input. For sin(pi/6) it should be .5 but it would not accept this and threw an error. Type Error: Object doesn't support property or method 'slice'

NOTE: It would accept 0.5 (but not .5).

So it seems like the parser is forcing you to have to type a 0 (zero) in front of the decimal point. Although this is good way of doing things I think that graphical user friendliness this is not that friendly and could even throw some people for a loop.

It looks like maybe the . (dot) has some purpose maybe in some inputs? (or is it a system/language property that got overlooked). If it is needed then maybe you could write it that if you are suspecting a numerical input to turn that (. dot) feature off, other times when expecting a non-numeric input leave the default (. dot) feature?

http://ximera.osu.edu/course/kisonecat/m2o2c2/course/activity/week1/functions/

Lastly thanks for the Calc I and Series class and this class. Keep up the good work...

clipboard04

HubbaHubbaHubba avatar Mar 20 '14 02:03 HubbaHubbaHubba