Detailed Description
This group includes all functions used to create/convert reals.
Function Documentation
Create a real from double.
This function creates a real object from a double.
- Parameters:
-
where | Defines where to allocate memory from. Can be one of the following constants: ALLOC_HEAP Allocates from the C-heap using malloc() ALLOC_TEMPOB Allocates memory from the TEMPOB calculator area or... it can be an element (SAT_OBJECT) within a composite object, (array, list or any other). |
value | Initial value to assign to the newly created real. |
- Returns:
- SAT_OBJECT with the new real number, or zero if it fails. When a SAT_OBJECT is given to the 'where' parameter, the same SAT_OBJECT is returned or 0 if error.
- See also:
- sat3_createreal_decn sat3_createreal_int sat3_createreal_llong sat3_createreal_xreal Object creation and manipulation
Create a real from variable precision real numbers (decNumber).
This function creates a real object from a decNumber.
- Parameters:
-
where | Defines where to allocate memory from. Can be one of the following constants: ALLOC_HEAP Allocates from the C-heap using malloc() ALLOC_TEMPOB Allocates memory from the TEMPOB calculator area or... it can be an element (SAT_OBJECT) within a composite object, (array, list or any other). |
value | Initial value to assign to the newly created real. |
- Returns:
- SAT_OBJECT with the new real number, or zero if it fails. When a SAT_OBJECT is given to the 'where' parameter, the same SAT_OBJECT is returned, or zero if it fails.
- See also:
- sat3_createreal_dbl sat3_createreal_int sat3_createreal_llong sat3_createreal_xreal Object creation and manipulation
Create a real from an int.
This function creates a real object from a 32-bit integer.
- Parameters:
-
where | Defines where to allocate memory from. Can be one of the following constants: ALLOC_HEAP Allocates from the C-heap using malloc() ALLOC_TEMPOB Allocates memory from the TEMPOB calculator area or... it can be an element (SAT_OBJECT) within a composite object, (array, list or any other). |
value | Initial value to assign to the newly created real. |
- Returns:
- SAT_OBJECT with the new real number, or zero if it fails. When a SAT_OBJECT is given to the 'where' parameter, the same SAT_OBJECT is returned or 0 if error.
- See also:
- sat3_createreal_decn sat3_createreal_dbl sat3_createreal_llong sat3_createreal_xreal Object creation and manipulation
Create a real from a LONGLONG.
This function creates a real object from a 64-bit integer (LONGLONG).
- Parameters:
-
where | Defines where to allocate memory from. Can be one of the following constants: ALLOC_HEAP Allocates from the C-heap using malloc() ALLOC_TEMPOB Allocates memory from the TEMPOB calculator area or... it can be an element (SAT_OBJECT) within a composite object, (array, list or any other). |
value | Initial value to assign to the newly created real. |
- Returns:
- SAT_OBJECT with the new real number, or zero if it fails. When a SAT_OBJECT is given to the 'where' parameter, the same SAT_OBJECT is returned or 0 if error.
- See also:
- sat3_createreal_decn sat3_createreal_dbl sat3_createreal_int sat3_createreal_xreal Object creation and manipulation
Create a real from extended precision real numbers (XREAL).
This function creates a real object from an XREAL number.
- Parameters:
-
where | Defines where to allocate memory from. Can be one of the following constants: ALLOC_HEAP Allocates from the C-heap using malloc() ALLOC_TEMPOB Allocates memory from the TEMPOB calculator area or... it can be an element (SAT_OBJECT) within a composite object, (array, list or any other). |
value | Initial value to assign to the newly created real. |
- Returns:
- SAT_OBJECT with the new real number, or zero if it fails. When a SAT_OBJECT is given to the 'where' parameter, the same SAT_OBJECT is returned.
- See also:
- sat3_createreal_dbl sat3_createreal_int sat3_createreal_llong sat3_createreal_decn Object creation and manipulation