# Real\_TO\_STRING(Expotentialdarstellung)

**URL:** <https://oscat.discourse.group/t/real-to-string-expotentialdarstellung/927>\
**Category:** Codesys 2\
**Created:** [10. November 2010 um 15:33 UTC](https://oscat.discourse.group/t/real-to-string-expotentialdarstellung/927 "2010-11-10T15:33:41Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/free1/uploads/oscat/original/1X/2efdfb9c592ff9a666c94dff124ee84fa863dae5.jpeg) [@system](https://oscat.discourse.group/u/system)\
**Post date:** [10. November 2010 um 15:33 UTC](https://oscat.discourse.group/t/real-to-string-expotentialdarstellung/927/1 "2010-11-10T15:33:41Z")

</div>

Hallo Forumgemeide,

Gibt es einen Baustein der eine Real Zahl (0.23) in einen String umwandelt. Der String sollte immer die Expotentialdarstellung enthalten.

REAL\_TO\_STRING(EX)

Beispiel:  
REAL STRING  
1000 ‘1.0e3’  
100 ‘1.0e2’  
10 ‘1.0e1’  
1 ‘1.0e0’  
0,1 ‘1.0e-1’  
0,01 ‘1.0e-2’  
0,001 ‘1.0e-3’

Könnt ihr mir bitte helfen.  
DANKE!
