Nice!<br><br><div class="gmail_quote">On Tue, May 31, 2011 at 3:10 PM, Jay Hannah <span dir="ltr"><<a href="mailto:jhannah@mutationgrid.com">jhannah@mutationgrid.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
Hey, ceil() sure is handy. People tend to register for conferences at the last minute so I need to apply a ratio multiplier to the numbers I already have to tell the print shop what to print.<br>
<br>
ceil() rounds up for me.   :)<br>
<br>
<a href="https://github.com/perigrin/YAPC-NA-2011/blob/master/asheville_businesses/shirts.pl" target="_blank">https://github.com/perigrin/YAPC-NA-2011/blob/master/asheville_businesses/shirts.pl</a><br>
<br>
$ ./<a href="http://shirts.pl" target="_blank">shirts.pl</a><br>
143 sizes are declared. The target is 350, so we're multiplying by 2.4 and then rounding up.<br>
  5 4XL<br>
 76 L<br>
  3 L (W)<br>
 81 M<br>
  3 M (W)<br>
 10 S<br>
  5 S (W)<br>
 96 XL<br>
  5 XL (W)<br>
 13 XLT<br>
  5 XS<br>
  3 XS (W)<br>
 18 XXL<br>
  8 XXL (W)<br>
 13 XXLT<br>
 13 XXXL<br>
New total is 357<br>
<br>
IRC++ CPAN++ POSIX++    :)<br>
<br>
Jay Hannah<br>
Software Architect<br>
<a href="mailto:jhannah@mutationgrid.com">jhannah@mutationgrid.com</a> | <a href="http://mutationgrid.com" target="_blank">http://mutationgrid.com</a> | <a href="tel:1-402-598-7782" value="+14025987782">1-402-598-7782</a><br>

<br>
<br>
<br>
_______________________________________________<br>
Omaha-pm mailing list<br>
<a href="mailto:Omaha-pm@pm.org">Omaha-pm@pm.org</a><br>
<a href="http://mail.pm.org/mailman/listinfo/omaha-pm" target="_blank">http://mail.pm.org/mailman/listinfo/omaha-pm</a><br>
</blockquote></div><br>