MCPcopy Create free account
hub / github.com/OpenSees/OpenSees / isfloat

Function isfloat

SCRIPTS/toOpenSeesPy.py:72–77  ·  view source on GitHub ↗
(value)

Source from the content-addressed store, hash-verified

70# Helper function to deterine if a variable is a floating point value
71#
72def isfloat(value):
73 try:
74 float(value)
75 return True
76 except ValueError:
77 return False
78
79# Function that does the conversion
80#

Callers 1

toOpenSeesPyFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected