I reply to all queries on the forums and via email, once per day, Monday to Friday (not weekends).

If you are new here, please see some information on how to ask for support. Thank you!

Reply To: coins with few decimal places

dashed-slug.net Forums Exchange extension support coins with few decimal places Reply To: coins with few decimal places

#10219
alexg
Keymaster

Hello,

I am aware of this issue.

In the upcoming wallets6 the issue with decimals is dealt with more correctly, so the parent plugin will give you more control on this via the admin interface.

In the meantime, check to see how you define your NIMB coin in the wallets_turtle_coins filter. The default is:

		// An sprintf() pattern for displaying amounts. If unsure, leave to '%01.8f'.
		'amount pattern' => '%01.2f',

		// Number of decimal points allowed. If you set this to 2, also set the amount pattern to "%01.2f". For 8 decimals, set the amount pattern to "%01.8f".
		'decimals' => 2,

If you want to modify the number of decimals used for this coin, you should modify both the decimals AND the amount pattern. The amount pattern is an sprintf pattern.

with regards