Jump to content
MakeWebGames

bigint problem.


Recommended Posts

Guest Drizzle
Posted

Okay well, i currently have something that checks bigint and fixes them, but i want to number_format a big int, but it wont work.

 

Heres my function:

function secureBigInt($var){

return abs(floatval(number_format($var)));

}

and then i apply the variable on another page, and it works, but when number_format is in there, the value changes from 1000000 to 1. But when i take it out, it stays 1000000. :/

Guest Drizzle
Posted

Nope. :/ Im sprintf'ing the string, so i figure maybe thats the problem

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...