[Gambas-user] Upd 3.15.2 with Xub16.04: Replacing Val() by CFloat(), [Solved]

Benoît Minisini g4mba5 at gmail.com
Sun Sep 27 19:19:10 CEST 2020


Le 27/09/2020 à 19:09, ub2 at gmx.ch a écrit :
> Hi Cedron, Lee and Jussi
> 
> 
> Thanks a lot for your answers and sorry for my late response.
> Since I did no receive none of my own emails through the list, I
> believed that the list was not working at all.
> I therefore planned to ask and check next week again.
> But obviously you got it (but not me!), so sorry for that.
> 
> 
> Now answering your questions:
> 
> @ Cedron:
> Your code:					=> Output
> 
> Print "*"; Val("15911.23046875"); "***"		=> ****
> 
> Dim x As Float = Val("15911.23046875")		=> Fails, same error
> Print x
> 
> Dim y As Float = CFloat("15911.23046875")
> Print y						=> 15911,23046875
> 
> Print "*"; Val("15911.23046875"); "*\t*\t*"   	=> **    *    *
> 
> 
> @ Lee:
> Thanks for your explanation why \t is not working in messages.
> 
> 
> @ Jussi
> Do Val("15911,23046875") work (IE instead of "." use ",")?
> 
> Yes it does! Seems that with 3.15.2 something changed in reading
> the localization in Xubuntu16.04LTS. But not in Xub18.04. Strange!

Yes, something changed in localization support in 3.15.2, but it was 
(normally) just bug fixes.

Can you send us the list of all environment variables of your two 
systems used when running your tests? (Xubuntu 16.04 LTS and Xubuntu 
18.04). I need the localization variables (all LC_*, LANG and LANGUAGES).

Thanks.

-- 
Benoît Minisini


More information about the User mailing list