我有这样的数字 34.59704151614417
我将数据类型放在十进制(16,14)上,但它保存为34.59704151614400
这意味着mysql只保存12位十进制数 这是我的数组
阵 (
[geometry] => Array
(
[type] => Polygon
[coordinates] => Array
(
[0] => Array
(
[0] => Array
(
[0] => 32.34375
[1] => 48.690960390925
)
[1] => Array
(
[0] => 16.875
[1] => 34.597041516144
)
[2] => Array
(
[0] => 43.2421875
[1] => 31.653381399664
)
[3] => Array
(
[0] => 64.3359375
[1] => 40.97989806962
)
[4] => Array
(
[0] => 32.34375
[1] => 48.690960390925
)
)
)
)
)
我明白 在我对我的数组执行json_decode之后,将它的数字减少到12个数字