
|
INFO - FAQ - CC2-Forum - CCPro-Forum |
|
||
|
Details, details ... That all should be left for the student as an exercise, anyway. ;-) Bye Achim > I forgot to mention something: > The Temperatur/10 must be changed to abs(temperature/10) otherwise, for example, -1.0 (-10) will be displayed as --1,0. > > If Temperatur < 0 then print”-” > Print abs(Temperatur/10);”,”;abs(Temperatur)mod 10 > > Greetings, > H.J.W. > > > 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. |
| Antwort schreiben |