Skip to content
Permalink
Browse files

added a bunch of constants

  • Loading branch information
Alex Gaynor
Alex Gaynor committed Apr 4, 2013
1 parent 9c7d5e9 commit ddbf11d4bd5ab31f59309bbc803b7cae46cd2755
Showing with 8 additions and 10 deletions.
  1. +0 −10 spec/tags/core/float/constants_tags.txt
  2. +8 −0 topaz/objects/floatobject.py

This file was deleted.

@@ -53,6 +53,14 @@ def setup_class(cls, space, w_cls):
space.set_const(w_cls, "MIN", space.newfloat(sys.float_info.min))
space.set_const(w_cls, "INFINITY", space.newfloat(INFINITY))
space.set_const(w_cls, "NAN", space.newfloat(NAN))
space.set_const(w_cls, "DIG", space.newint(sys.float_info.dig))
space.set_const(w_cls, "EPSILON", space.newfloat(sys.float_info.epsilon))
space.set_const(w_cls, "MANT_DIG", space.newint(sys.float_info.mant_dig))
space.set_const(w_cls, "MAX_10_EXP", space.newint(sys.float_info.max_10_exp))
space.set_const(w_cls, "MIN_10_EXP", space.newint(sys.float_info.min_10_exp))
space.set_const(w_cls, "MAX_EXP", space.newint(sys.float_info.max_exp))
space.set_const(w_cls, "MIN_EXP", space.newint(sys.float_info.min_exp))
space.set_const(w_cls, "RADIX", space.newint(sys.float_info.radix))

@classdef.method("inspect")
@classdef.method("to_s")

0 comments on commit ddbf11d

Please sign in to comment.