Bug? Bug when converting NumberFormat2 to Double - Filippo    Dec 20, 2024 .
Log("NumberFormat2=" & NumberFormat2(-0.0120000000000009, 1, 1, 1, False))
Dim dbl As Double = NumberFormat2(-0.0120000000000009, 1, 1, 1, False)
Log("dbl=" & dbl... B4A Question Rounding Numbers: Round2 or Numberformat2 - Roger Daley    Nov 11, 2014   (1 reaction) Round2 but use Numberformat2 for rounding numbers.
Most of us are taught that for digits below 5... given by Round2.
Numberformat2 gives the result 4.72 after a bit of research I found... Bug? Numberformat2 decimal places - Andrew (Digitwell)    Nov 3, 2020 As Double = 1000
private s as string = NumberFormat2(n,0,2,0,False)
log(s)
... B4A Question NumberFormat2() with decimalseparator accroding to locale? - fredo    Apr 1, 2017 According to the documentation NumberFormat2() returns a string with a decimal separator and grouping characters.
NumberFormat2(12345.67, 0, 3, 3, True) = 12,345.670
While localizing a large project I need to have the comma and dot according to the devices active locale, but NumberFormat2() delivers the same for countries US and DE.
In order to avoid NumberFormatExceptions (de_DE expects... Bug? NumberFormat2() changes NumberFormat() behaivior - Gustavo Retana    Nov 13, 2017 Just for causality I used both NumberFormat and NumberFormat2 in the same code and I noticed that when I change the Grouping parameter in NumberFormat2, NumberFormat starts behaving accordingly with the parameter in NumberFormat2. If I set the Grouping as False in NumberFormat2, NumberFormat... False :" & NumberFormat2(a,1,12,0,False))
Log("3) NF NoGrouping?:" &... Bug? Bug in NumberFormat2? - Computersmith64    Sep 16, 2015 looks like this:
txtCost.Text = NumberFormat2(mRec.Get("cost"), 1, 2, 2, False)
(Don... line (the one that uses NumberFormat2) then it all works fine. Also, if I change the first... B4A Question NumberFormat2 not working quite as I expect - barx    Apr 10, 2015
Dim NewShade As Double = NumberFormat2((txtShade.Text - 0.01), 0, 2, 2, False)
Log(NewShade)
txtShade.Text = NewShade
End If
End Sub
How comes 2 decimal places...I'm wanting to show a number in an Edittext as x.xx with 2 decimal point values shown all... B4A Question Why 2.405 doesn't round to 2.41 with NumberFormat2 or Round2? - aeric (first post)    Dec 7, 2021   (1 reaction) Post in thread 'Rounding decimal point number'
https://www.b4x.com/android/forum/threads/rounding-decimal-point-number.106739/post-668311... Italian NUMBERFORMAT2 - LucaMs (first post)    Sep 16, 2021   (2 reactions) 119199
Il secondo parametro è il numero minimo di interi che dovranno essere visualizzati.
NumberFormat2(variabile, 1, 2, 0, False)... Bug? NumberFormat & NumberFormat2 not formating decimals - ggpanta    Mar 29, 2014 Dim fiat As double
fiat = 6368.4397
NumberFormat(fiat, 0, 2)
Expected:
textFiat = 6368.43
Actual... that its not expected to format the original var but the output of numberforma to a text obj... Page: 1   2   3   4   5   6   7   |