Did I find the right examples for you? yes no

All Samples(22)  |  Call(22)  |  Derive(0)  |  Import(0)
float.hex() -> string

Return a hexadecimal representation of a floating-point number.
>>> (-0.1).hex()
'-0x1.999999999999ap-4'
>>> 3.14159.hex()
'0x1.921f9f01b866ep+1'

src/p/e/PeachPy-0.0.1/peachpy/x86.py   PeachPy(Download)
	def parse_float64(number):
		if isinstance(number, float):
			number = float.hex(number)
		elif isinstance(number, int) or isinstance(number, long):
			number = float.hex(float(number))
		elif isinstance(number, str):
			# Validity check
			float.hex(float.fromhex(number))

src/p/e/PeachPy-0.0.1/peachpy/__init__.py   PeachPy(Download)
	def parse_float64(number):
		if isinstance(number, float):
			number = float.hex(number)
		elif isinstance(number, str):
			if number == "inf" or number == "+inf":
			else:
				# Validity check
				float.hex(float.fromhex(number))
		else:
			raise TypeError('Unsupported constant type {0} for constant {1}'.format(type(number), number))

src/g/l/glyph-rpc-HEAD/py/hyperglyph/encoding.py   glyph-rpc(Download)
        elif isinstance(obj, float):
            yield FLT
            obj = float.hex(obj)
            yield obj
            yield END_ITEM

src/h/y/hyperglyph-0.9-20140421/hyperglyph/encoding.py   hyperglyph(Download)
        elif isinstance(obj, float):
            yield FLT
            obj = float.hex(obj)
            yield obj
            yield END_ITEM

src/t/r/TrustRouter-HEAD/client/packaging/Windows/Python32/Lib/test/test_strtod.py   TrustRouter(Download)
            got = 'memory error'
        else:
            got = fs.hex()
        expected = strtod(s)
        self.assertEqual(expected, got,

src/p/y/pytaint-HEAD/Python-2.7.5-pytaint/Lib/test/test_strtod.py   pytaint(Download)
            got = 'memory error'
        else:
            got = fs.hex()
        expected = strtod(s)
        self.assertEqual(expected, got,

src/s/t/static-python-HEAD/Lib/test/test_strtod.py   static-python(Download)
            got = 'memory error'
        else:
            got = fs.hex()
        expected = strtod(s)
        self.assertEqual(expected, got,

src/m/u/music-player-HEAD/mac/pyobjc-core/PyObjCTest/test_keyvaluecoding.py   music-player(Download)
        self.assertEqual(KeyValueCoding.getKey(r, 'attr8'), os.getpid())
        self.assertEqual(KeyValueCoding.getKey(r, 'attr9'), 'attribute 9')
        self.assertEqual(KeyValueCoding.getKey(1.5, 'hex'), (1.5).hex())
 
    def test_none_get(self):

src/m/a/main-HEAD/External.LCA_RESTRICTED/Languages/IronPython/27/Lib/test/test_strtod.py   main(Download)
            got = 'memory error'
        else:
            got = fs.hex()
        expected = strtod(s)
        self.assertEqual(expected, got,

src/m/a/main-HEAD/External.LCA_RESTRICTED/Languages/CPython/27/Lib/test/test_strtod.py   main(Download)
            got = 'memory error'
        else:
            got = fs.hex()
        expected = strtod(s)
        self.assertEqual(expected, got,

  1 | 2  Next