INFO - FAQ - CC2-Forum - CCPro-Forum |
> ManfredW is absolutely correct, > The If Temperatur < 0 then print”-” must be placed in front of your code otherwise temperatures from -0,1 (-1) to -0,9 (-9) will not be displayed with a “-” but be display as 0,1 to 0,9. > > Example: > > Temperatur = -3 ‘-0,3’ > Print Temperatur/10;”,”;abs(Temperatur)mod 10 > > Temperatur/10 is 0 > Abs(Temperatur)mod 10 is 3 > > So with your code the temperature of -0,3 will be displayed as 0,3. > Greetings, > H.J.W. Hallo, danke für diesen Hinweis. Da habe ich etwas gelernt. Das werde ich auf meine homepage nehmen. MfG ManfredW Meine Homepage: http://manfred.wilzeck.de |
Antwort schreiben |