ddwaf_object_float

Function ddwaf_object_float 

Source
pub unsafe extern "C" fn ddwaf_object_float(
    object: *mut ddwaf_object,
    value: f64,
) -> *mut ddwaf_object
Expand description

ddwaf_object_float

Creates an object using a double, the resulting object will contain a double as opposed to a string.

@param object Object to perform the operation on. (nonnull) @param value Double to initialise the object with.

@return A pointer to the passed object or NULL if the operation failed.