[Gambas-user] Scientific notation

Benoît Minisini g4mba5 at gmail.com
Thu May 9 00:05:18 CEST 2019


Le 08/05/2019 à 23:56, Benoît Minisini a écrit :
> Le 08/05/2019 à 23:15, gen braga a écrit :
>> Hello,
>>
>> Dim x As Float = 5
>> Print format(x, gb.scientific)
>>
>> outputs 5E+ (shouldnt it be 5E+0?). Besides that:
>>
>> Dim x As Float = 5E+
>> Print x
>>
>> returns syntax error on variable initialization. if I  change it to
>> 5E+0 it is obviously Ok.
>>
>> Bug?
>>
>> -
>> Gen
>>
> Yes.
> 

Fixed in commit 
https://gitlab.com/gambas/gambas/commit/19b83e535d693f7dad83c5f89781e1974f1f7526.

Regards,

-- 
Benoît Minisini


More information about the User mailing list