[Gambas-user] Const

Gianluigi gradobag at gradobag.it
Fri Feb 23 11:05:41 CET 2024


Il 23/02/24 10:54, Philippe Valarcher ha scritto:
> I only mean this :
> In an old program before 3.19 I did  :
>
> Public Const C As Float = 344
> Public Const PO As Float = 1.1803398875
>
> In 3.19 when I compile those const. do not use the values in calculations.
> I had to to convert in :
> Public  C As Float = 344
> Public  PO As Float = 1.1803398875
>
> For the calculations to be done the way it should.
>
> --
> Philippe Valarcher <philippe.valarcher at free.fr>


here this works:

Public C As Float = 344
Public PO As Float = 1.1803398875

Public Sub Main()

   Print c * po
   Print c / po

End

Regards
Gianluigi
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20240223/84bdbc89/attachment.htm>


More information about the User mailing list