Numeric functions
π€ AI-Generated Content
This documentation was generated with AI assistance and is still being audited. Some, or potentially a lot, of this information may be inaccurate. Learn more.
pyvider.components.functions.numeric_functions
¶
Numeric computation functions for mathematical operations.
Classes¶
Functions¶
round_number
¶
Round a number to specified decimal places.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
number
|
int | float | None
|
Number to round |
required |
*options
|
int
|
Optional precision (int, default: 0) |
()
|
Returns:
| Type | Description |
|---|---|
int | float | None
|
Rounded number |
Examples:
round_number(3.14159) β 3 round_number(3.14159, 2) β 3.14