Skip to content

Instantly share code, notes, and snippets.

View jamesmoss's full-sized avatar

James Moss jamesmoss

View GitHub Profile
@jamesmoss
jamesmoss / cron.php
Created November 18, 2011 14:17 — forked from jaspertandy/cron.php
function myfloor( $value , $precision = 0 ){
$multiplier = pow(10, $precision);
return floor( $value * $multiplier ) / $multiplier;
}
function myceil( $value , $precision = 0 ){
$multiplier = pow(10, $precision);
return ceil( $value * $multiplier ) / $multiplier;
}