Posts by Ricardo MB • 134 points
2 posts
-
5
votes2
answers1416
viewsA: How to subtract decimal numbers?
Javascript number is a floating point (http://www.hunlock.com/blogs/The_Complete_Javascript_Number_Reference) and, according to the link "as accurate as possible". Therefore: var soma = 0.06 + 0.01…
javascriptanswered Ricardo MB 134 -
6
votes4
answers3497
viewsA: Capture the values of JSON that is Online
What you can use to not have to do everything in hand is the: com.google.common.io.Resources. So, to recover the data from the URL, just do: URL url = new URL( urlString ); return…