On Wed, Nov 13, 2002 at 07:53:05PM +0000, Andrew Wilson wrote: > On Wed, Nov 13, 2002 at 01:10:05PM -0600, Jonathan Scott Duff wrote: > > On Wed, Nov 13, 2002 at 06:38:08PM +0000, Andrew Wilson wrote: > >> On Wed, Nov 13, 2002 at 07:26:06PM +0100, Angel Faus wrote: > >>> For example, the integer 30 can be written in hexadecimal base in two > >>> equivalent ways: > >>> > >>> my $x = 16:1D > >>> my $x = 16:1.14 > >>> > >>> These two representations are incompatible, so writing something like > >>> C<16:D.13> will generate a compile-time error. > >> > >> So, can we specify floats in other bases? > > > > Why would you want to? > > Personally I wouldn't. That doesn't mean it's not useful to someone.
I can't imagine someone would want to write something like this: 2:10.01 # 2.25 decimal 8:2.2 # same 16:2.4 # same except for obfuscatory purposes. Besides, if we allow dots for floating point numbers how do we represent this integer: 256:234.254 ? -Scott -- Jonathan Scott Duff [EMAIL PROTECTED]