Class: qgsRound

class qgis.core.qgsRound(number: float, places: int) → float

Returns a double number, rounded (as close as possible) to the specified number of places.

New in version 3.0.

Parameters
  • number (float) –

  • places (int) –

Return type

float