It is currently Thu Apr 17, 2014 2:07 am




Post new topic This topic is locked, you cannot edit posts or make further replies.  [ 5 posts ] 
 Floats not been formatted corrctly 
Author Message
General
General

Joined: Tue Feb 24, 2009 1:30 pm
Posts: 887
Location: Calgary
Post Floats not been formatted corrctly
I have a SQLTag with the raw value of 2537, data type Float4.
It has a scaling of: Raw high = 100 Scaled High = 1, clamp mode = none
Format string is ##.# KV

looking at the tags Browser, it shows a value of 25.4

when I display in on a screen using it's value and format string it shows as 25.
eg:numberFomat(path_to_tag.value, path_to_tag.format)

What happened to the decimal point?


Tue Apr 12, 2011 5:21 am
Profile WWW
Moderator
Moderator

Joined: Sun Apr 02, 2006 2:46 pm
Posts: 1982
Location: Sacramento, CA
Post Re: Floats not been formatted corrctly
What component and what property are you using for display. It could be possible you are binding that expression to an integer property.

_________________
Travis Cox
Inductive Automation
Technical Support Rep.


Tue Apr 12, 2011 6:57 am
Profile WWW
General
General

Joined: Tue Feb 24, 2009 1:30 pm
Posts: 887
Location: Calgary
Post Re: Floats not been formatted corrctly
I'm using a label


Wed Apr 13, 2011 2:46 pm
Profile WWW
Moderator
Moderator

Joined: Sun Apr 02, 2006 2:46 pm
Posts: 1982
Location: Sacramento, CA
Post Re: Floats not been formatted corrctly
Can you post an example of the problem? For example, you can export a window.

_________________
Travis Cox
Inductive Automation
Technical Support Rep.


Wed Apr 13, 2011 3:37 pm
Profile WWW
General
General

Joined: Tue Feb 24, 2009 1:30 pm
Posts: 887
Location: Calgary
Post Re: Floats not been formatted corrctly  Topic is solved
Don't remember this one. Must have been my problem that I solved.


Tue Jul 31, 2012 10:48 am
Profile WWW
Display posts from previous:  Sort by  
Post new topic This topic is locked, you cannot edit posts or make further replies.  [ 5 posts ] 


Who is online

Users browsing this forum: No registered users and 5 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to: