src/properties/class-papi-property-number.php
public function format_value( $value, $slug, $post_id ) {
		$value = is_string( $value ) && is_numeric( $value ) ? $value + 0 : $value;

		if ( is_float( $value ) ) {
			return floatval( $value );
		} else {
			return intval( $value );
		}
	}
public function format_value( $value, $slug, $post_id ) {
		$value = is_string( $value ) && is_numeric( $value ) ? $value + 0 : $value;

		if ( is_float( $value ) ) {
			return floatval( $value );
		} else {
			return intval( $value );
		}
	}
Format the value of the property before it's returned
to WordPress admin or the site.

@param  mixed  $value
@param  string $slug
@param  int    $post_id

@return float|int