pro_se Posted January 13, 2007 Share Posted January 13, 2007 say i had 2.4, how would i make it so it was 3?[code]<?php$variable = 2.4; //this is 2.4echo "$variable"; //I want this to say 3?>[/code] Quote Link to comment Share on other sites More sharing options...
pro_se Posted January 13, 2007 Author Share Posted January 13, 2007 whoops, just answered own question... ceil() Quote Link to comment Share on other sites More sharing options...
pro_se Posted January 13, 2007 Author Share Posted January 13, 2007 [code]<?php$variable = ceil(2.4); //this is 2.4echo "$variable"; //I want this to say 3?>[/code] Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.