B4X Developer's Watch

udg

Expert
Licensed User
Longtime User
Nice.
Although in some countries the position of the mark in 565.293 would be read as a decimal separator causing that hour to be read as 0.002
 

JordiCP

Expert
Licensed User
Longtime User
Although in some countries the position of the mark in 565.293 would be read as a decimal separator causing that hour to be read as 0.002
As it would be cheaper for the manufacturer to build only 1 version, a working solution for any country: 1.000 * (565,293 - 565,291 )
(if '.' is thousands separator and ',' is decimal separator --> result = 2
(if '.' is decimal separator and ',' is thousands separator --> result = 2

Enjoyed...
 

udg

Expert
Licensed User
Longtime User

advansis

Active Member
Licensed User
Longtime User
If thousand separator is "," won't the result be 2000?
 

ilan

Expert
Licensed User
Longtime User
If thousand separator is "," won't the result be 2000?

No, it would be 2 according to my android calculator

Edit: note the the 1.000 has a dot (.)
And 565,293 has a comma (,)

So it will be or:

1* (2)
Or
1000*(0.002)
 
Last edited:
Cookies are required to use this site. You must accept them to continue using the site. Learn more…