code logs -> 2021 -> Fri, 16 Apr 2021< code.20210415.log - code.20210417.log >
--- Log opened Fri Apr 16 00:00:39 2021
00:27
<@celticminstrel>
I’m confused. There isn’t any other way to calculate modf, is there?
00:28
<@celticminstrel>
Oh wait, is what you want to have the sign assigned to i instead of f?
00:28
<@celticminstrel>
No wait, does that even make sense…?
00:29
<&McMartin>
He wants, if the remainder is negative, to instead subtract 1 from the integral result and add 1 to the remainder.
00:29
<&McMartin>
Which I *think* is the same thing as "round towards negative infinity"
00:30
<@celticminstrel>
modf isn’t remainder exactly…
00:33
<~Vornicus>
in the existing, both i and f get x's sign. I want f to be always nonnegative, which gives it consistent behavior across zero
00:35
<~Vornicus>
https://www.desmos.com/calculator/nw8wjjmtwz red is what I want; blue is what fmod does to f (shifted down so you can see it alone)
00:40 Vornicus [Vorn@ServerAdministrator.Nightstar.Net] has quit [Connection closed]
00:46
<@celticminstrel>
I see.
00:47
<@celticminstrel>
I don’t think you could call that modf tho.
00:49
<@celticminstrel>
By definition, it’s supposed to split out the integer and fractional part, but x-floor(x) doesn’t do that for negative numbers.
00:50
<@celticminstrel>
You’ll get 0.9 from -0.1.
01:04 himi [sjjf@Nightstar-v37cpe.internode.on.net] has quit [Connection closed]
01:08 himi [sjjf@Nightstar-v37cpe.internode.on.net] has joined #code
01:08 mode/#code [+o himi] by ChanServ
01:10 catalyst [catalyst@Nightstar-ejd4sd.cable.virginm.net] has quit [Ping timeout: 121 seconds]
01:12 catalyst [catalyst@Nightstar-hqtkjm.dab.02.net] has joined #code
01:14 catalyst_ [catalyst@Nightstar-hqtkjm.dab.02.net] has joined #code
01:14 catalyst [catalyst@Nightstar-hqtkjm.dab.02.net] has quit [Connection closed]
01:47 Degi [Degi@Nightstar-3ke6hp.pool.telefonica.de] has quit [Operation timed out]
01:49 Degi [Degi@Nightstar-blr4ha.pool.telefonica.de] has joined #code
02:48 Reiv [NSkiwiirc@Nightstar-ih0uis.global-gateway.net.nz] has quit [[NS] Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
03:04 Reiv [NSkiwiirc@Nightstar-ih0uis.global-gateway.net.nz] has joined #code
03:04 mode/#code [+o Reiv] by ChanServ
05:28 Kindamoody[zZz] [Kindamoody@Nightstar-eubaqc.tbcn.telia.com] has quit [Ping timeout: 121 seconds]
05:30 VirusJTG_ [VirusJTG@Nightstar-42s.jso.104.208.IP] has quit [Connection closed]
05:30 VirusJTG_ [VirusJTG@Nightstar-42s.jso.104.208.IP] has joined #code
06:05 Reiv [NSkiwiirc@Nightstar-ih0uis.global-gateway.net.nz] has quit [[NS] Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
06:09 VirusJTG_ [VirusJTG@Nightstar-42s.jso.104.208.IP] has quit [Connection closed]
06:20 catalyst_ [catalyst@Nightstar-hqtkjm.dab.02.net] has quit [Ping timeout: 121 seconds]
06:34 Vorntastic [uid293981@Nightstar-h2b233.irccloud.com] has joined #code
06:34 mode/#code [+qo Vorntastic Vorntastic] by ChanServ
06:52 catalyst [catalyst@Nightstar-7lgs99.dab.02.net] has joined #code
07:16 catalyst [catalyst@Nightstar-7lgs99.dab.02.net] has quit [[NS] Quit: -a- IRC for Android 2.1.59]
07:50 Netsplit Traal.Nightstar.Net <-> Krikkit.Nightstar.Net quits: Degi, @ErikMesoy, @PinkFreud, @macdjord, @Syloq
07:51 Netsplit over, joins: Syloq
07:55 macdjord [macdjord@Nightstar-re5.7if.45.45.IP] has joined #code
07:55 Degi [Degi@Nightstar-blr4ha.pool.telefonica.de] has joined #code
07:55 PinkFreud [WhyNot@NetworkAdministrator.Nightstar.Net] has joined #code
07:55 ErikMesoy [Bruker@Nightstar-ptnpo0.bb.online.no] has joined #code
07:55 ServerMode/#code [+ooo macdjord PinkFreud ErikMesoy] by *.Nightstar.Net
07:55 mode/#code [+o Syloq] by ChanServ
08:59 Emmy [Emmy@Nightstar-l49opt.fixed.kpn.net] has joined #code
09:15
<~Vorntastic>
celticminstrel: wat, that makes no sense
09:17 catalyst [catalyst@Nightstar-ejd4sd.cable.virginm.net] has joined #code
11:01 Reiver [quassel@Nightstar-ksqup0.co.uk] has quit [[NS] Quit: Reblooting.]
11:03 Reiver [quassel@Nightstar-ksqup0.co.uk] has joined #code
11:03 mode/#code [+ao Reiver Reiver] by ChanServ
12:10 Kimo|autojoin [Kindamoody@Nightstar-eubaqc.tbcn.telia.com] has joined #code
12:10 mode/#code [+o Kimo|autojoin] by ChanServ
12:10 Kimo|autojoin is now known as Kindamoody
12:17 catalyst [catalyst@Nightstar-ejd4sd.cable.virginm.net] has quit [The TLS connection was non-properly terminated.]
12:27 VirusJTG [VirusJTG@Nightstar-42s.jso.104.208.IP] has joined #code
12:27 mode/#code [+ao VirusJTG VirusJTG] by ChanServ
14:00 catalyst [catalyst@Nightstar-ejd4sd.cable.virginm.net] has joined #code
14:50 M-E [Emmy@Nightstar-l49opt.fixed.kpn.net] has joined #code
14:53 Emmy [Emmy@Nightstar-l49opt.fixed.kpn.net] has quit [Ping timeout: 121 seconds]
15:00 Vornicus [Vorn@ServerAdministrator.Nightstar.Net] has joined #code
15:00 mode/#code [+qo Vornicus Vornicus] by ChanServ
15:31 Degi [Degi@Nightstar-blr4ha.pool.telefonica.de] has quit [Operation timed out]
15:38 Degi [Degi@Nightstar-iv3tn2.dyn.telefonica.de] has joined #code
16:28 abudhabi [abudhabi@Nightstar-d7a6f2.adsl.tpnet.pl] has joined #code
16:31 abudhabi_ [abudhabi@Nightstar-r0cgbp.adsl.tpnet.pl] has quit [Ping timeout: 121 seconds]
16:54 Vorntastic [uid293981@Nightstar-h2b233.irccloud.com] has quit [[NS] Quit: Connection closed for inactivity]
17:12 M-E is now known as Emmy
18:57 himi [sjjf@Nightstar-v37cpe.internode.on.net] has quit [Ping timeout: 121 seconds]
19:00 himi [sjjf@Nightstar-v37cpe.internode.on.net] has joined #code
19:00 mode/#code [+o himi] by ChanServ
19:34 himi [sjjf@Nightstar-v37cpe.internode.on.net] has quit [Ping timeout: 121 seconds]
19:43 himi [sjjf@Nightstar-v37cpe.internode.on.net] has joined #code
19:43 mode/#code [+o himi] by ChanServ
19:49 himi [sjjf@Nightstar-v37cpe.internode.on.net] has quit [Ping timeout: 121 seconds]
19:53 himi [sjjf@Nightstar-v37cpe.internode.on.net] has joined #code
19:53 mode/#code [+o himi] by ChanServ
20:50 himi-cat [sjjf@Nightstar-v37cpe.internode.on.net] has joined #code
20:50 himi [sjjf@Nightstar-v37cpe.internode.on.net] has quit [Ping timeout: 121 seconds]
23:06 Emmy [Emmy@Nightstar-l49opt.fixed.kpn.net] has quit [Operation timed out]
23:43 Kindamoody is now known as Kindamoody[zZz]
--- Log closed Sat Apr 17 00:00:40 2021
code logs -> 2021 -> Fri, 16 Apr 2021< code.20210415.log - code.20210417.log >

[ Latest log file ]