remove deprecation from math.round (#15224)

This commit is contained in:
Miran 2020-08-25 15:59:42 +02:00 • committed by GitHub
commit 5163fe7d87
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 2 deletions

View file

@ -768,8 +768,7 @@ else: # JS
## ( 6.5 mod -2.5) == 1.5
## (-6.5 mod -2.5) == -1.5
proc round*[T: float32|float64](x: T, places: int): T {.
deprecated: "use strformat module instead".} =
proc round*[T: float32|float64](x: T, places: int): T =
## Decimal rounding on a binary floating point number.
##
## This function is NOT reliable. Floating point numbers cannot hold