我不想把真实的签证卡信息用于测试在沙盒中付款.有没有办法创建预先配置的卡进行测试?
可能重复:
在PHP中奇怪添加数字字符串
$r = 1.0 - 0.8 - 0.2;
var_dump($r);
Run Code Online (Sandbox Code Playgroud)
我得漂浮-5.5511151231258E-17.我在C++和C#中得到的结果相同.
MySQL我通过查询获得结果0.0:
SELECT 1.0 - 0.8 - 0.2
Run Code Online (Sandbox Code Playgroud)