Implementation of NumberField (handle Float values)