AccountObject (balance)

Hi there,

I want to retrieve the Flow balance from a blocto wallet account to display it in the user profile. For this I retrieve an “AccountObject using this function: fcl.getAccount(address). But when I check the retrieved data I get a Flow balance equal to: 200000100000 for a real account Flow balance equal to 2000.001.
In the Flow documentation I get this information: " balance number The FLOW balance of the account in 10*6.” However I don’t understand because 2000.001 * 10^6 = 2000001000 and not 200000100000.

Could someone explain to me please?

You need to multiply by 10^8 instead of 10^6. FLOW token amounts are always to 8 decimal places.