convert scientific notation to decimal with php

前端 未结 3 1940
盖世英雄少女心
盖世英雄少女心 2021-01-29 05:56

math with bitcoin is giving me problems

        $value = bcmul((float)$TotalMoney, $p,8);
        $value = bcdiv((float)$Value, 100,8);

returns

3条回答
  •  终归单人心
    2021-01-29 06:23

    I just use number_format()

    Actual situation on your PHP:

    $n=pow(71663616,2);
    echo $n //5.1356738581955E+15
    

    Now calling the decimal notation:

    $n=pow(71663616,2);
    echo number_format($n) //5,135,673,858,195,456
    

提交回复
热议问题