<?php
echo PHP_EOL
, number_format(10000001.1, 1, ".", "") + 0; // 10000001.1 echo PHP_EOL
, number_format(10000001.0, 1, ".", "") + 0; // 1000000
PD9waHAKCmVjaG8gbnVtYmVyX2Zvcm1hdCgzLjAsIDEsICIuIiwgIiIpICsgMDsgLy8gMwplY2hvIFBIUF9FT0wsIG51bWJlcl9mb3JtYXQoMS4xLCAxLCAiLiIsICIiKSArIDA7IC8vIDEuMQplY2hvIFBIUF9FT0wsIG51bWJlcl9mb3JtYXQoMTAwMDAwMDEuMSwgMSwgIi4iLCAiIikgKyAwOyAvLyAxMDAwMDAwMS4xCmVjaG8gUEhQX0VPTCwgbnVtYmVyX2Zvcm1hdCgxMDAwMDAwMS4wLCAxLCAiLiIsICIiKSArIDA7IC8vIDEwMDAwMDA=