SYNMONTH/2 ) { $phase = 'Waning'; } // Convert $MoonIllum to percent and round to whole percent. $MoonIllum = round( $MoonIllum, 2 ); $MoonIllum *= 100; if ( $MoonIllum == 0 ) { $phase = "New Moon"; } if ( $MoonIllum == 100 ) { $phase = "Full Moon"; } print "Moon Phase: $phase\n"; print "Percent Illuminated: $MoonIllum%\n"; } ?>