Golang: Round Float64 Correctly

Concluído Postado há 5 anos Pago na entrega
Concluído Pago na entrega

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 do Projeto: #18132096

Sobre o projeto

2 propostas Projeto remoto Ativo em há 5 anos

Concedido a:

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 em 1 dia
(7 Comentários)
3.5

2 freelancers estão ofertando em média $20 nesse trabalho

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 em 1 dia
(0 Comentários)
0.0