def _db_set_value(self, v, unused_p, value):
    if not isinstance(value, (bool, int, long, float)):
      raise TypeError('FloatProperty %s can only be set to integer or float '
                      'values; received %r' + (self._name, value))
    v.set_doublevalue(float(value))
dataset/ETHPy150Open GoogleCloudPlatform/datastore-ndb-python/ndb/model.py/FloatProperty._db_set_value/operator `%` -> `+`