CODESYS - the IEC 61131-3 automation software

Welcome to the official CODESYS Forum by 3S-Smart Software Solutions GmbH | A member of the CODESYS Group
Deutsche Version English version russian version 
It is currently Fri Dec 06, 2019 1:24 am

All times are UTC+01:00




Post new topic  Reply to topic  [ 3 posts ] 
Author Message
PostPosted: Fri Nov 08, 2019 2:43 pm 
Offline

Joined: Tue Mar 22, 2011 10:13 am
Posts: 5
Hello to all

With Codesys V3.5

I'm trying to visualize a text variable.

For that I did a "box" where as
- Text I've used %i m
- Text variable My variable that is a REAL


But In that case what is shown as text is only number before the digit.

Example :
- My variable 0.0555 => show 0 => I would like to see 0.05
- My variable 1.355 => show 1 => I would like to see 1.35

Thank you for help


Top
   
PostPosted: Fri Nov 08, 2019 2:52 pm 
Offline
Frequent User
Frequent User

Joined: Thu Mar 17, 2016 1:24 pm
Posts: 195
Use %.2f instead %i.

_________________
Make CODESYS great again


Top
   
PostPosted: Fri Nov 08, 2019 4:04 pm 
Offline

Joined: Tue Mar 22, 2011 10:13 am
Posts: 5
Thank You => It's work good


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 3 posts ] 

All times are UTC+01:00


Who is online

Users browsing this forum: No registered users and 1 guest


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:  
Powered by phpBB® Forum Software © phpBB Limited