travis Posted May 24, 2010 Share Posted May 24, 2010 i have basically a random array of numbers ranging from 1-2000. what i need is to isolate the hundred number ex. if ($numb == 200) $output = 2; 200 would return 2 834 would return 8 32 would return 0 2000 would return 20 1124 would return 11 599 would return 5 thank you Link to comment https://forums.phpfreaks.com/topic/202695-simple-math-help/ Share on other sites More sharing options...
travis Posted May 24, 2010 Author Share Posted May 24, 2010 nvm figured it out floor($numb / 100); Link to comment https://forums.phpfreaks.com/topic/202695-simple-math-help/#findComment-1062425 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.