Re: Repeating Decimals

From: Date: Fri, 06 Dec 2002 10:05:30 +0000
Subject: Re: Repeating Decimals
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-127238@lists.php.net to get a copy of this message
0.<font style="text-decoration : overline;">3</font> Stephen wrote:
Hello again, This is another PHP mathematical question. How can I display a bar over a number (overline) if it's a repeating decimal? When the user types in 1 by 3, they get 0.333333333333. I want it to display as 0.3 with the 3 overlined. How can I do this keeping in mind that not all numbers will be repeating decimals? Thanks, Stephen Craton http://www.melchior.us "What is a dreamer that cannot persevere?" -- http://www.melchior.us


« previous php.general (#127238) next »