MCPcopy Index your code
hub / github.com/clips/pattern / float_value

Function float_value

pattern/web/pdf/pdftypes.py:99–105  ·  view source on GitHub ↗
(x)

Source from the content-addressed store, hash-verified

97 return x
98
99def float_value(x):
100 x = resolve1(x)
101 if not isinstance(x, float):
102 if STRICT:
103 raise PDFTypeError('Float required: %r' % x)
104 return 0.0
105 return x
106
107def num_value(x):
108 x = resolve1(x)

Callers

nothing calls this directly

Calls 2

resolve1Function · 0.85
PDFTypeErrorClass · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…