Golang: Round Float64 Correctly

Виконано Опубліковано %project.relative_time Оплачується при отриманні
Виконано Оплачується при отриманні

I need to implement the following "round up" function in GOLANG:

func roundFloat64 (x float64, decimals int) float64 {...}

Examples for testing:

roundFloat64 (1.111111111,8) = 1.11111112

roundFloat64 (1.1001,2) = 1.11

roundFloat64 (1.1000000000001,2) = 1.11

roundFloat64 (1.1000000000001,3) = 1,101

roundFloat64 (1.12345678,4) = 1.1235

Golang

ID Проекту: #18132096

Про проект

2 заявок(-ки) Дистанційний проект Остання активність 5 роки(ів) тому

Доручено:

anoops9895

Hi I have 6+ experience in Golang. I can finish this job very easily in an hour. We can discuss more about this in private chat. Thanks Anoop S

$25 USD за 1 день
(7 відгуків(-и))
3.5

2 фрілансерів(-и) готові виконати цю роботу у середньому за $20

bGuruprasath

Hi , I read your description and I can do that.I have 2+ years of experience in Golang . Contact me for the discussion

$15 USD за 1 день
(0 відгуків(и))
0.0