Topic
genauigkeit/nachkommastellen
Page d'accueil ' Communauté ' Généralités ' précision/décimales
- Ce sujet contient 4 réponses, 2 participants et a été mis à jour pour la dernière fois par Christian Rathgeber, le il y a 17 années et 7 mois.
-
AuteurMessages
-
15.10.2007 à 16:56 #33958Christian RathgeberParticipant
Hallo,
ich hab schon in der Hilfe gesucht, konnte aber leider nichts dazu finden. Ist es möglich bei der Ausgabe einer Formel die Anzahl der Nachkommastellen des Ergebnisses zu bestimmen (so wie in C mit .3)?15.10.2007 à 16:56 #33962Christian RathgeberParticipantHallo,
ich hab schon in der Hilfe gesucht, konnte aber leider nichts dazu finden. Ist es möglich bei der Ausgabe einer Formel die Anzahl der Nachkommastellen des Ergebnisses zu bestimmen (so wie in C mit .3)?16.10.2007 à 18:15 #33959Bernhard KantzParticipantYou have the possibility to format your FPScript formula. Formatters control the output of numbers, angles, strings, calendar time values and time spans. They always start with a ‘%’ character, which is followed by a code.
Select the formula in the Object List, use the right mouse button and select Properties from the context menu. In the Formatting tab you can change the format.
The format is visible in the Value tab of the formula.16.10.2007 à 19:32 #33960Christian RathgeberParticipantThank your for the answer. I already tried this and it works, but I’m sending those results to vba and there the new format gets lost. So I have to change it in vba? I can’t find any command for this.
17.10.2007 à 18:18 #33961Bernhard KantzParticipantIn VBA there is the command [b]Format [/b].
-
AuteurMessages
- Vous devez être connecté pour répondre à ce sujet.