• cheeser
  • ernimril
  • joed
  • kinabalu
  • lunk
  • ojacobson
  • r0bby
  • ThaDon
  • ricky_clarkson
  • topriddy

« 2020-09-16


2020-09-18 »

Nick Message Date
sarna [sarna!3e1528e3@gateway/web/cgi-irc/] has joined #kotlin [04:12]
Lengsdorfer [Lengsdorfer!~Lengsdorf@unaffiliated/lengsdorfer] has joined #kotlin [07:40]
argo [argo!~argo@unaffiliated/argo] has joined #kotlin [08:44]
argo [argo!~argo@unaffiliated/argo] has joined #kotlin [10:39]
CocoStorm [CocoStorm!~cocostorm@unaffiliated/marco/x-1695183] has joined #kotlin [11:09]
CocoStorm Hi, what's the easiest way to read a json file from /resource into data class objects? [11:09]
cheeser next [11:29]
cheeser Another satisfied customer. Next! [11:29]
argo [argo!~argo@unaffiliated/argo] has joined #kotlin [11:51]
zutat [zutat!02f47891@unaffiliated/zutat] has joined #kotlin [12:08]
zutat [zutat!02f47891@unaffiliated/zutat] has joined #kotlin [12:25]
jenia [jenia!] has joined #kotlin [03:18]
jenia hello [03:18]
jenia Is there a simple way to find an array of bytes inside another array like [1, ef, 0, 3] and [2, 0, 1, ef, 0, 3, a, aa], the function should return 2 [03:19]
orbyt_v7 [orbyt_v7!~textual@] has joined #kotlin [03:47]
Bombe Array should have an indexOf() method, does it not? [05:12]
tang^ [tang^!~tang^@2604:3d09:47c:f970:d4d3:96c1:6ae6:d4ca] has joined #kotlin [08:59]
the_impaler8 [the_impaler8!] has joined #kotlin [09:16]
zacts [zacts!~zacts@dragora/developer/zacts] has joined #kotlin [09:17]
droidrcc [droidrcc!] has joined #kotlin [10:50]
droidrcc this is interesting! java.lang.Double.valueOf("8.20")*100.0 is equal to 819.9999999.... [10:52]
droidrcc any idea why? [10:57]
cheeser floating point [11:00]
cheeser floating point calculations can be inaccurate and have limits. Here's a guide that explains exactly why: - If you need precision, use BigDecimal. Otherwise, just round when you print, for example by using: String.format("%.2f", myFloatingPointNumber); alternative info site: [11:00]
droidrcc thanks, cheeser [11:03]
droidrcc it make sense [11:20]
droidrcc some floating number can't be exactly represented in the binary system [11:20]
cheeser np [11:27]