org.jruby.util
Class ConvertDouble

java.lang.Object
  extended by org.jruby.util.ConvertDouble

public class ConvertDouble
extends java.lang.Object


Nested Class Summary
static class ConvertDouble.DoubleConverter
           
 
Constructor Summary
ConvertDouble()
           
 
Method Summary
static double byteListToDouble(org.jruby.util.ByteList bytes, boolean strict)
          Converts supplied ByteList into a double.
static double byteListToDouble19(org.jruby.util.ByteList bytes, boolean strict)
          Converts supplied ByteList into a double.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConvertDouble

public ConvertDouble()
Method Detail

byteListToDouble

public static final double byteListToDouble(org.jruby.util.ByteList bytes,
                                            boolean strict)
Converts supplied ByteList into a double. strict-mode will not like extra text non-numeric text or multiple sequention underscores.


byteListToDouble19

public static final double byteListToDouble19(org.jruby.util.ByteList bytes,
                                              boolean strict)
Converts supplied ByteList into a double. This is almost exactly the same as byteListToDouble, but leading underscores are no longer skipped in 1.9 (e.g. __1 == 0.0 in 1.9 while 1.8 parses it as 1.0).



Copyright © 2002-2009 JRuby Team. All Rights Reserved.