You'd write something analogous to the Java BigDecimal class. Even better you'd /use/ the Big Decimal class and not reinvent the wheel ;)
http://java.sun.com/j2se/1.5.0/docs/...igDecimal.html
--
Charlie Harvey's website - linux, perl, java, anarchism and punk rock:
http://charlieharvey.org.uk