Scientific notation with TOC SCADA verb

4 Posts
3 Users
0 Likes
35 Views
(@l.baillieul@arcinfo.com)
Posts: 13
Active Member Guest
Topic starter
 

Hello all

Did everyone know a troubleshooting to display a number superior than 1 million without the scientific notation ?

In fact, the text return by TOC verb is always in scientific notation and my clientwould like to have it in his text with all the zeros.

BR

 
Posted : 07/06/2013 7:34 pm
f.martin
(@f-martinarcinfo-com)
Posts: 148
Member Admin
 

Hello,

I had a similar problem with a project, but I don't remember which one...
It's written in he help, that TOC instruction uses the scientific notation.

The workaround I applied was to use FORMAT instruction.

sub main()
	Dim i as double;
	Dim t as str;

	i = 12345678901234;

	t = toc(i);
	print("toc : ", t);

	t = ltrim(format("%0.0f",i));
	print("format : ", t);
end sub
 
Posted : 07/06/2013 8:04 pm
(@l.baillieul@arcinfo.com)
Posts: 13
Active Member Guest
Topic starter
 

OK thanks Florent

This topic can be closed 😉

 
Posted : 10/06/2013 12:28 pm
n.kunzer
(@n-kunzerarcinfo-com)
Posts: 1236
Member Moderator
 

Loic, if it's closed please change the Icon with the good Smiley

 
Posted : 11/06/2013 7:18 am