@Jarek wrote:
Hi All, working in RhinoScript here, I have some settings saved in ini file as strings, in a US decimals format, let’s say a=“0.89”.
When I want to use it as a number, I do Cdbl(a) to convert.
But when I do the same with a Rhino version that uses comma in decimals, Cdbl returns error.
For example in Polish version of Rhino, running Cdbl(“0.89”) results in error, it has to be "Cdbl(“0,89”).How to best handle such cases of number conversion that depend on language version?
Is there anything built-in VBScript to handle these cases automatically?
(maybe I should write a function that looks for “.” and replaces it with “,”, and vice-versa?)thanks,
–jarek
Posts: 3
Participants: 2