Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DOUBLE() function throws exception if there are leading and/or trailing spaces #2

Open
markbirbeck opened this issue Nov 22, 2010 · 0 comments

Comments

@markbirbeck
Copy link
Member

If the DOUBLE() function (which casts a string to a floating-point number) is given input with spaces in (such as " 1,234 ") an exception is thrown.

A temporary workaround is to remove the spaces before passing the parameter to the DOUBLE() function:

DOUBLE(SUBSTITUTE(A2, ' ', ''))

A CSV file illustrating the problem is at:

http://www.bbsrc.ac.uk/nmsruntime/saveasdialog.aspx?lID=6515&sID=12031

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant