Alam Posted December 4, 2006 Report Share Posted December 4, 2006 Olá pessoal, alguém sabe aí como tratar dízimas tipo obter o valor 945.29 da dízima 945.293333333333... ?? sei lá, alguma função sem ser aquela int que arredonda pra inteiro. Sö quero arredondar a dízima.Valeu Quote Link to comment Share on other sites More sharing options...
0 Romero Dias Posted December 4, 2006 Report Share Posted December 4, 2006 Acredito que a funççao FormatNumber() irá resolver seu problema, valor = 945.2933333333 response.write (FormatNumber(valor),2) Quote Link to comment Share on other sites More sharing options...
0 Alam Posted December 4, 2006 Author Report Share Posted December 4, 2006 value cara! Quote Link to comment Share on other sites More sharing options...
Question
Alam
Olá pessoal, alguém sabe aí como tratar dízimas tipo obter o valor 945.29 da dízima 945.293333333333... ?? sei lá, alguma função sem ser aquela int que arredonda pra inteiro. Sö quero arredondar a dízima.
Valeu
Link to comment
Share on other sites
2 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.