AnsweredAssumed Answered

SolvedA quick question about the From File

Question asked by wangyiliu99 on Jun 12, 2013
Latest reply on Jun 16, 2013 by wangyiliu99
Hi, all

sorry for asking naive question again. 

One quick question about the I/O>From file

I have a txt file with the following number

100.2

Then I use From file,
command is 
READ TEXT x real32

for x property, there are a lot of options, like int32, real32, real64, etc.

if I want to get exactly the number 100.2 out. What should I do?

If use the int format, number after the period will be omitted, if real32 or 64,
too many unwanted digits appear like 100.200xxxx

It could be adjusted by only changing the parameters of the From File box, 
or I need to use some function, like str to num (which is available in BASIC, I failed to find it
from the function library.)

Thank you for your kind help.

Yours,
Yiliu

Edited by: wangyiliu on Jun 16, 2013 9:53 PM  

Outcomes