开发者

override type choosing or compare two floats in php

So basically, i'm getting two really really big ID's from different resources (external resource and database), and I need to compare them somehow. If they match, I need to break the action.

Seems simple enough, but PHP is converting them to floats (looks开发者_StackOverflow something like that 6.2983963148698E+14) and they never seem to match then.

What should I do? I tried googling for some type of a big integer in PHP, or casting them as strings. That did not work.

Bare in mind, I'm not really experienced at this.

Thanks for your help.


Have you tried the BC Math functions?

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜