Fork me on GitHub
#clj-kondo
<
2020-02-27
>
iGEL09:02:04

We use Math.round in cljs, and clj-kondo complaints about it. There is no Math namespace I can require. What can I do besides using js/Math directly?

borkdude09:02:35

does Math/round work?

borkdude09:02:58

$ plk
ClojureScript 1.10.520
cljs.user=> (Math/round 1.2)
1

iGEL09:02:05

Oh, sorry. I guess we meant to use that 😉 Thank you

robert-stuttaford11:02:05

the type inference stuff is awesome @borkdude saved me real time today

borkdude11:02:09

cool! can you post the example maybe (or a similar one)?

robert-stuttaford11:02:29

next time it does, i will!