Moonsoft Software Solutions

max. decimals in inline results

Started 16 Jan 2018 · 2 replies

  1. zen11t
    Hi!

    How can i set inline result fields max decimals?

    Thank you very much,

    Zen11t
  2. Moonsoft support
    Hi,
    as you have available all valid php functions you can use the round function in order to round to specific number of decimal places, or number_format function if you want to add any specific format to the output, here the official pages regarding these functions:


    http://php.net/manual/en/function.round.php

    $your_result=round($your_result,2);

    or

    php.net/manual/en/function.number-format.php

    $your_result=number_format($your_result,2,".",",");

    Hope this helps, regards
  3. zen11t
    Thank you very much.

Still stuck?

Customers with an active license can open a support ticket.

Log in to open a ticket