From b9e7d02462e49b2eb3a5ec8909ce06167d9c0599 Mon Sep 17 00:00:00 2001 From: pfefferminz132 Date: Thu, 7 Nov 2019 17:54:51 +0100 Subject: [PATCH] math: make ceil return an f64 --- vlib/math/math.v | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/vlib/math/math.v b/vlib/math/math.v index e6665f3f01..6f45b6ee4a 100644 --- a/vlib/math/math.v +++ b/vlib/math/math.v @@ -45,8 +45,8 @@ pub fn cbrt(a f64) f64 { return C.cbrt(a) } -// ceil returns the nearest integer greater or equal to the provided value. -pub fn ceil(a f64) int { +// ceil returns the nearest f64 greater or equal to the provided value. +pub fn ceil(a f64) f64 { return C.ceil(a) } @@ -146,7 +146,7 @@ pub fn factorial(n int) i64 { } */ -// floor returns the nearest integer lower or equal of the provided value. +// floor returns the nearest f64 lower or equal of the provided value. pub fn floor(a f64) f64 { return C.floor(a) }