{ } Raw JSON

bundles / astropy latest / astropy / io / fits / card / _int_or_float

function

astropy.io.fits.card:_int_or_float

source: /astropy/io/fits/card.py :1246

Signature

def   _int_or_float ( s )

Summary

Converts an a string to an int if possible, or to a float.

Extended Summary

If the string is neither a string or a float a value error is raised.

Aliases

  • astropy.io.fits.card._int_or_float