astrogo / fitsio

fitsio is a pure-Go package to read and write `FITS` files
BSD 3-Clause "New" or "Revised" License
54 stars 22 forks source link

fitsio: card value as float64 #43

Open sbinet opened 6 years ago

sbinet commented 6 years ago

42 exposed an interesting edge case: values that look like ints (e.g. 4) but should really be handle as float64.

perhaps Value should grow an AsFloat64() or Float64() method that converts an int into a float64?