我爱占星网 我爱占星网
首页
编程
java
php
前端
首页 编程 java php 前端

PHP号码添加错误

$score = $_GET['score'];
$ht = $ayarcek['total'];
$total = $ht+$score;
echo $total;

Result: 6.0E-8

I want to summarize the numbers 1.000000 + 0 or 1.000000 + 1.000000, but when I do the collection I get the above result. Where could I have done wrong?

I solved the problem. It will be helpful for callers

$score = $_GET['score'];
$ht = $ayarcek['total'];
$cek = $ht+$score;
$total = sprintf('%.8f', $cek);

近期文章

  • 如何为我的laravel网站制作多个模板? (我的意思是前端模板不是laravel模板引擎)
  • 求助:Laravel来自源的XMLHttpRequest访问已被CORS策略阻止?
  • 需要帮助一些无效的代码[关闭]
  • 使用javascript编辑包含的php
  • 如何从Laravel迁移到表达
  • 在数组PHP中组合索引
  • PHP中“+”,“ - ”和“^”运算符之间的区别?
  • 我可以用PHP语言集成DJI SDK吗?
  • 将JSON数组提取到ArrayList到ListView
  • 用php显示数据库中的pdf文件
  • too long
  • MySQL查询日期范围 - 查找常见期间
  • 我的jquery在我的php中没有工作while while [关闭]
  • 我制作了一个让人们互相关注的php文件
  • 将一维数组转换为二维数组
  • SugarCRM'MyItem'
  • 保存按钮HTML [关闭]
  • php索引问题,不发送电子邮件[重复]
  • LibGDX新项目中的黄色警告三角形
  • 如何从Php + Jquery中的文件夹中获取所有文件[关闭]

Copyright ©2022 我爱占星 All Rights Reserved.

浙ICP备2022030071号-1

部分图文来自网络,如有侵犯您的版权,请告诉我们删除

友情链接:代码精华