How to calculate percentage value correctly with double variable?

Hi!
How to calculate percentage value correctly?

When trying to calculate what 4.65% of BR$93349.08 would be, I get the value of 43407322.2
The correct one would be R$4340.73

Thank´s

Hi @Marcelo_Melo Welcome
what is format of your value. is BR% attach or not.

Hi @Marcelo_Melo do this

*Type of doubleVar is string

Hello
It would be the Brazilian currency format. You can ignore the format.
The main thing would be to calculate the percentage value correctly

@Marcelo_Melo



Your problem is coming when you are not converting your variable from string to Integer or Double

Thank you very much

Thank you very much.

1 Like

@Marcelo_Melo Thank you. Happy Learning. Stay blessed.

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.