[Gambas-user] (no subject)
Benoît Minisini
benoit.minisini at gambas-basic.org
Fri Feb 23 17:25:36 CET 2024
Le 23/02/2024 à 14:52, Philippe Valarcher a écrit :
> Well asked by Benoît a short application showing the "strange" :
>
> 'Rem Constantes
> Public Const C As Float = 344
> Public Const PO As Float = 1.1803398875
>
> Public Sub Form_Open()
>
> Print "C = " & C
> Print "PO = " & po
>
> Print "Calcul1 =" & CStr((C ^ 2) * po / ((2 * Pi * 100) ^ 2 * 107.41))
> Print "Calcul2 =" & CStr((344 ^ 2) * 1.1803398875 / ((2 * Pi * 100) ^ 2
> * 107.41))
>
> vbx1.Value = (C ^ 2) * po / ((2 * Pi * 100) ^ 2 * 107.41)
> vbx2.Value = (344 ^ 2) * 1.1803398875 / ((2 * Pi * 100) ^ 2 * 107.41)
> vbx3.Value = c
> vbx4.Value = po
> vbx5.Value = 344
>
> End
>
> --
>
> Philippe Valarcher <philippe.valarcher at free.fr
> <mailto:philippe.valarcher at free.fr>>
>
Thanks.
It's fixed by commit
https://gitlab.com/gambas/gambas/-/commit/bcf71e13766b84b6d32d8c99568a42635c2eb50c.
The fix will be backported in the next stable release.
Regards,
--
Benoît Minisini.
More information about the User
mailing list