Salut chris,
En supposant que vous utilisez Flowcode 7, vous pouvez ajouter un deuxième paramètre à la fonction de conversion FloatToString.
Cela convertira en utilisant le nombre par défaut de points décimaux 6.
Code: Select all
lcdamps = FloatToString$ (Current)
Cela convertira en utilisant le nombre de points décimaux surchargé 2.
Code: Select all
lcdamps = FloatToString$ (Current, 2)
Hi Chris,
Assuming you're using Flowcode 7 you can add a second parameter to the FloatToString conversion function.
This will convert using the default number of decimal points 6.
Code: Select all
lcdamps = FloatToString$ (Current)
This will convert using the overridden number of decimal points 2.
Code: Select all
lcdamps = FloatToString$ (Current, 2)