public static RubyFloat newFloat(Ruby runtime, double value) { return new RubyFloat(runtime, value); }
public static RubyFloat newFloat(Ruby runtime, double value) { return new RubyFloat(runtime, value); }
public static RubyFloat newFloat(Ruby runtime, double value) { return new RubyFloat(runtime, value); }
public static RubyFloat newFloat(Ruby runtime, double value) { return new RubyFloat(runtime, value); }
private static RubyFloat str2fnumCommon(Ruby runtime, RubyString arg, boolean strict, ByteListCaller caller) { final double ZERO = 0.0; try { return new RubyFloat(runtime, caller.yield(arg, strict)); } catch (NumberFormatException e) { if (strict) { throw runtime.newArgumentError("invalid value for Float(): " + arg.callMethod(runtime.getCurrentContext(), "inspect").toString()); } return new RubyFloat(runtime,ZERO); } }
private static RubyFloat str2fnumCommon(Ruby runtime, RubyString arg, boolean strict, ByteListCaller caller) { final double ZERO = 0.0; try { return new RubyFloat(runtime, caller.yield(arg, strict)); } catch (NumberFormatException e) { if (strict) { throw runtime.newArgumentError("invalid value for Float(): " + arg.callMethod(runtime.getCurrentContext(), "inspect").toString()); } return new RubyFloat(runtime,ZERO); } }
return new RubyFloat(ctx.runtime, f);
return new RubyFloat(ctx.runtime, f);
result = new RubyFloat(runtime, f);
result = new RubyFloat(runtime, f);