Pop-Up Thingie

âš¡ The Horizon BBS
  • Home
  • Forum
  • Files
  • Register
  • Log in
  1. Forum
  2. DOVE-Net
  3. Synchronet Sysops
  • When a double is cast to an int, but the double has a larger value

    From Rob Swindell@VERT to GitLab note in main/sbbs on Fri Feb 11 22:30:52 2022
    https://gitlab.synchro.net/main/sbbs/-/commit/f587a43e6fee5458e3376d5a8441d5fe3f6e1dc5#note_2274

    From the Linux man page on roundl():
    If you want to store the rounded value in an integer type, you probably
    want to use one of the functions described in lround(3) instead.

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Deuc¿@VERT to GitLab note in main/sbbs on Fri Feb 11 22:33:36 2022
    https://gitlab.synchro.net/main/sbbs/-/commit/f587a43e6fee5458e3376d5a8441d5fe3f6e1dc5#note_2275

    Can't because it's too big to fit... we don't want to deal with FP exceptions.

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Rob Swindell@VERT to GitLab note in main/sbbs on Fri Feb 11 22:38:00 2022
    https://gitlab.synchro.net/main/sbbs/-/commit/f587a43e6fee5458e3376d5a8441d5fe3f6e1dc5#note_2276

    Interesting. So were you seeing msclock() always returning the same number before?

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Deuc¿@VERT to GitLab note in main/sbbs on Fri Feb 11 22:38:45 2022
    https://gitlab.synchro.net/main/sbbs/-/commit/f587a43e6fee5458e3376d5a8441d5fe3f6e1dc5#note_2277

    Yep.

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Rob Swindell@VERT to GitLab note in main/sbbs on Fri Feb 11 22:39:48 2022
    https://gitlab.synchro.net/main/sbbs/-/commit/f587a43e6fee5458e3376d5a8441d5fe3f6e1dc5#note_2278

    And this is because we're now greater than some magic number of milliseconds away from the Epoch?

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • Who's Online

    No nodes active
  • System Info

    Sysop: Chris Crash
    Location: Huntington Beach, CA.
    Users: 620
    Nodes: 8 (0 / 8)
    Uptime: 39:20:43
    Calls: 10,894
    Files: 5
    Messages: 538,292

© The Horizon BBS, 2025