double string2Fraction ( CharSequence cs , int readed ) { if ( cs . length ( ) > 16 ) { throw new JsonParseException ( "Number string is too long." , readed ) ; } double d = 0.0 ; for ( int i = 0 ; i < cs . length ( ) ; i ++ ) { int n = cs . charAt ( i ) - ' ' ; d = d + ( n == 0 ? 0 : n / Math . pow ( 10 , i + 1 ) ) ; } return d ; }
parse 0123 as 0 . 0123