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!

coins with few decimal places

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

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #10214
    LeinAd
    Participant

    is there a possibility in the market overview to display coins with few decimal places (in the example 2) with a price that has more decimal places? In the picture you see a coin with 2 decimal places and as price 0.00

    Attachments:
    You must be logged in to view attached files.
    #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

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.