← round operator page · numeric/round/ds_no_digits/one_number_measure
pandas ✅ · DuckDB ✅
round with numDigit omitted, on a dataset with one Number measure.
Rounding: "The basic scalar type of the result is integer if numDigit is omitted", and in the Typical behaviours, "Operators changing the data type", the measure whose type changes is replaced: "A default generic Measure is assigned by default to the result Data Set, depending on the data type of the result", int_var for an Integer.
int_var, an Integer: 3.14159, 2.71828 and 12345.6 give 3, 3 and 12346.
DS_r := round(DS_1);
| Id_1 | Me_1 |
|---|---|
| 1 | 3.14159 |
| 2 | 2.71828 |
| 3 | 12345.6 |
{
"datasets": [
{
"name": "DS_1",
"DataStructure": [
{"name": "Id_1", "type": "Integer", "role": "Identifier", "nullable": false},
{"name": "Me_1", "type": "Number", "role": "Measure", "nullable": true}
]
}
]
}
| Id_1 | int_var |
|---|---|
| 1 | 3 |
| 2 | 3 |
| 3 | 12346 |
{
"datasets": [
{
"name": "DS_r",
"DataStructure": [
{"name": "Id_1", "type": "Integer", "role": "Identifier"},
{"name": "int_var", "type": "Integer", "role": "Measure"}
]
}
]
}