|Subject:||numf() take second argument to say how many decimal places|
$lh->maketext('pi is [numf,_1]', 355/113); # pi is 3.14159292035398 since pi = 355/116 is only accurate to 6 decimal places you'd actually want this: $lh->maketext('pi is [numf,_1,6]', 355/113); # pi is 3.141592 Have to watch sprintf('%.' . $decimal_places . 'f', $number) as it rounds, we'd just want to lop it off with a substr()or regex or something.