How do I go from 1.4795e+004 to 14795.00?

后端 未结 3 788
梦谈多话
梦谈多话 2020-12-10 20:01

I have this problem that has been bothering me for quite a while.. I want to change the format of the number.. Don`t know how? Ive tried the help files but can\'t find the a

3条回答
  •  Happy的楠姐
    2020-12-10 20:30

    sprintf('%.2f', 1.4795e4);
    

    (in particular: if you want it displayed/saved/printed a certain way, be explicit about it!)

提交回复
热议问题