Number API

assemble_json_value_number_get_float

float assemble_json_value_number_get_float(AJsonValue *value);

Description: Returns a float of the value if of type A_JT_NUMBER, A_JT_NUMBER_FLOAT, A_JT_NUMBER_DOUBLE, or A_JT_NUMBER_DECIMAL.

assemble_json_value_number_set_float

uint assemble_json_value_number_set_float(AJsonValue *value, float number);

Description: Sets the float of the value to "number", if of type A_JT_NUMBER, A_JT_NUMBER_FLOAT, A_JT_NUMBER_DOUBLE, or A_JT_NUMBER_DECIMAL.

assemble_json_value_number_get_double

double assemble_json_value_number_get_double(AJsonValue *value);

Description: Returns a double of the value if of type A_JT_NUMBER, A_JT_NUMBER_FLOAT, A_JT_NUMBER_DOUBLE, or A_JT_NUMBER_DECIMAL.

assemble_json_value_number_set_double

uint assemble_json_value_number_set_double(AJsonValue *value, double number);

Description: Sets the double of the value to "number", if of type A_JT_NUMBER, A_JT_NUMBER_FLOAT, A_JT_NUMBER_DOUBLE, or A_JT_NUMBER_DECIMAL.

assemble_json_value_number_get_decimal

void assemble_json_value_number_get_decimal(AJsonValue *value, AJsonDecimalNumber *decimal);

Description: Fills out a AJsonDecimalNumber of the value if of type A_JT_NUMBER, A_JT_NUMBER_FLOAT, A_JT_NUMBER_DOUBLE, or A_JT_NUMBER_DECIMAL.

assemble_json_value_number_set_decimal

uint assemble_json_value_number_set_decimal(AJsonValue *value, AJsonDecimalNumber *decimal);

Description: Sets the AJsonDecimalNumber of the value to "decimal", if of type A_JT_NUMBER, A_JT_NUMBER_FLOAT, A_JT_NUMBER_DOUBLE, or A_JT_NUMBER_DECIMAL.