05-22-2012 11:00 AM
Hi,
I am sending an array of numbers to a txtx file.The numbers in the array are displayed with 6 digits after the point.
I don't want to display any digit after the point.I defined it in the data entry but still in the txt it displays 6 digits.
How it can be solved?
Thanks,
Leonid
Solved! Go to Solution.
05-22-2012 11:10 AM
The settings in your data entry control only affect that. It doesn't affect the data being written out to a text file.
How are you writing the text file? Show us some code.
Some of the ways of sending data (such as Write to Spreadsheet File) have an input to set the format for the data being written out. And if you fail to wire something to that, the default value of 6 decimal places will be used. (Actually the default for Write to Spreadsheet File is 3 decimal places.)
05-22-2012 11:12 AM
How are you writing to the file? There is usally an input to format the number. I think the format you want is "%.0f" for floating point numbers (ex: dbl) or "%d" for decimal numbers (ex: I32).
05-22-2012 03:08 PM
You can get the exact text that is displaying in a numeric indicator by using a property node and reading: Numeric Text -> Text.
05-23-2012 02:01 AM
Thanks