Matt Haughton Posted July 24, 2006 Posted July 24, 2006 The GetAsNumber function returns the value "?" when passed the parameter "?". This behaviour confused me at first, just thought I'd try to get some feedback before reporting it to FileMaker as a bug. The question mark symbol is not a valid number and when passed as part of a string it is correctly stripped out as non-numeric, i.e. "1?1" -> "11" But it is not removed when it is on its own, i.e. "?" -> "?" I'm inclined to believe this is not a bug, it seems to go against the logic of the function however a single question mark usually indicates an error in a calculation, I think the function is merely cascading this error e.g. if the following calc produces a "?" "1/0" then you would expect the following to produce a "?" "GetAsNumber(1/0)" Just thought I'd check this function is behaving correctly, and also let people know about this behaviour.
Recommended Posts
This topic is 6759 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now