From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
08-01-2002 05:18 AM
08-01-2002 06:36 AM
08-01-2002 10:35 AM
08-01-2002 02:05 PM
08-01-2002 03:22 PM
08-02-2002 12:05 PM
10-04-2016 10:01 AM - edited 10-04-2016 10:04 AM
I suggest something like this to use with floats different from zero and with 4 decimal digits of precision (x10000):
10-04-2016 10:51 AM
You replied to a 14 year old thread. I am sure you could come up with an even simpler solution Try it! 😄
06-23-2020 08:23 AM
Ha, well now it is a 18 year old thread. But, I needed my code to do the same thing. This is what I came up with.
06-23-2020 08:29 AM - edited 06-23-2020 08:31 AM
Hi martym,
and why do you need to convert a number to string, followed by two conversions from string to number?
Btw. your code will not work worldwide…
This will basically do the same as yours, but needs to be checked for negative numbers: