Jump to content


Photo

Remove Decimal & Leading Numbers


  • Please log in to reply
1 reply to this topic

#1 yarub

yarub
  • Members
  • PipPipPip
  • Advanced Member
  • 72 posts
  • LocationSioux City, IA

Posted 11 August 2006 - 10:21 PM

When my script prints out 23.4739575, it somewhat annoys me. I want it to just show positive integers. I want it to display as 23 without anything else. If it prints out 5494.5888, I want it to display as 5494. Can anyone help me out?

#2 AndyB

AndyB
  • Staff Alumni
  • Advanced Member
  • 5,465 posts
  • LocationToronto

Posted 11 August 2006 - 10:26 PM

http://ca.php.net/ma...tion.intval.php .... INTeger VALue
Legend has it that reading the manual never killed anyone.
My site




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users