B4X Developer's Watch

Beja

Expert
Licensed User
Longtime User
IMG-20181011-WA0003.jpg
 
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 :)
 
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... :cool:
 
If thousand separator is "," won't the result be 2000?
 
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:
Back
Top