Bitte ändert euer Passwort!

Im März 2026 wurde das Forum gehackt. Dabei hatten die Angreifer Zugriff auf die Datenbank und somit Zugriff auf eure Passwörter. Auch wenn das Forum kein Passwort im Klartext speichert, können die Angreifer eure Passwörter knacken. Bitte ändert daher dringend euer Passwort für das Forum. Solltet ihr das gleiche Passwort auch an anderer Stelle verwenden, ändert es bitte unbedingt an allen Stellen!

addFloatBox?

  • abief
  • Autor
  • Offline
  • Premium Mitglied
  • Premium Mitglied
  • I'm here, there and elsewhere!
  • Beiträge: 95
  • Thanks: 19

addFloatBox?

04 Apr. 2018 04:35
#
Hi,

How do you add a Float box to a form?

I need to add a parameter to my setups that represents the gearbox ratio and is a number with decimals, that needs to increase by 0.01.

The workarround I'm doing is to add an intbox with the value multiplied by 100, but I would like to know how to manage a number with decimals.

thanks,
Field ready: Taborca (3.4m), Ocelot (1.6m), Alula (0.6m).
Factory line: FVT-3 (1m), A6M Zero (1.6m), Tiger Moth (2.2m), Grumann Goose (2m) and Beechcraft D18 (1.5m).
Design phase: Szd-20x Wampir II (7.5m), Rutan Quickie (1.6m), both parked.
Dreaming: Weird push-pull called Double Trouble (2.4m)

Bitte Anmelden oder Registrieren um der Konversation beizutreten.

  • FuniCapi
  • Offline
  • Platinum Mitglied
  • Platinum Mitglied
  • Beiträge: 1889
  • Thanks: 930

Re: addFloatBox?

04 Apr. 2018 07:20
#
The value parameter of a intbox is always an integer. So you have to divide by 100 in your calculations. To print the intbox value as float with two decimal places, set the decimal parameter of the addintbox function to 2. The step size then is 0.01(step parameter = 1)

Lukas
Folgende Benutzer bedankten sich: abief

Bitte Anmelden oder Registrieren um der Konversation beizutreten.

Moderatoren: ThornIG-Modellbau
Ladezeit der Seite: 0.571 Sekunden
Powered by Kunena Forum