L=5.324 /*Testwert x="x" /*wandelt eine Dezimalzahl in einen Text mit maximal 3 Dezimalstellen um /*================================================================================ dw=L /*dw=dezimalwert der in Text umgewandelt wird /*================================================================================ if dw<1 GTT="0" else GTT=itos(floor(dw)) /*ganzzahliger Anteil endif dw0=dw-floor(dw) dw00=dw-floor(dw*10)/10 dw000=dw-floor(dw*100)/100 if dw0>0 /*Dezimalwerte vorhanden if dw000>0 dtl=3 else if dw00>0 dtl=2 else if dw0>0 dtl=1 endif endif endif DWTXT=GTT+"."+extract((itos((dw0+1)*1000)),2,dtl) else DWTXT=GTT endif Dtxt1=dwtxt /*für weitere Werte Modul kopieren und Dtxt1 durch Dtxt2.3.4...ersetzen! /*================================================================================