How to handle ERC20 that is not 18 decimals

Hello,

Hopefully, someone can help on this - How do I handle ERC20 with for example 6 decimals or any other decimals than 18 for sending transactions in web3? for example ERC20 with 18 decimals we can use toWei of web3 js to handle i.e web3.utils.toWei(balance)

For 6 decimal how can I that be done?

You can get the amount without decimals and then add them, calling the token decimals() method

@FreezyEx Thanks, at the moment thats what I'm doing with a combination of creating my own function in js to add the decimals. Currently testing it to see if its working as I expected.