Fri Apr 19 08:56:35 2024
EVENTS
 FREE
SOFTWARE
INSTITUTE

POLITICS
JOBS
MEMBERS'
CORNER

MAILING
LIST

NYLXS Mailing Lists and Archives
NYLXS Members have a lot to say and share but we don't keep many secrets. Join the Hangout Mailing List and say your peice.

DATE 2012-02-01

HANGOUT

2024-04-19 | 2024-03-19 | 2024-02-19 | 2024-01-19 | 2023-12-19 | 2023-11-19 | 2023-10-19 | 2023-09-19 | 2023-08-19 | 2023-07-19 | 2023-06-19 | 2023-05-19 | 2023-04-19 | 2023-03-19 | 2023-02-19 | 2023-01-19 | 2022-12-19 | 2022-11-19 | 2022-10-19 | 2022-09-19 | 2022-08-19 | 2022-07-19 | 2022-06-19 | 2022-05-19 | 2022-04-19 | 2022-03-19 | 2022-02-19 | 2022-01-19 | 2021-12-19 | 2021-11-19 | 2021-10-19 | 2021-09-19 | 2021-08-19 | 2021-07-19 | 2021-06-19 | 2021-05-19 | 2021-04-19 | 2021-03-19 | 2021-02-19 | 2021-01-19 | 2020-12-19 | 2020-11-19 | 2020-10-19 | 2020-09-19 | 2020-08-19 | 2020-07-19 | 2020-06-19 | 2020-05-19 | 2020-04-19 | 2020-03-19 | 2020-02-19 | 2020-01-19 | 2019-12-19 | 2019-11-19 | 2019-10-19 | 2019-09-19 | 2019-08-19 | 2019-07-19 | 2019-06-19 | 2019-05-19 | 2019-04-19 | 2019-03-19 | 2019-02-19 | 2019-01-19 | 2018-12-19 | 2018-11-19 | 2018-10-19 | 2018-09-19 | 2018-08-19 | 2018-07-19 | 2018-06-19 | 2018-05-19 | 2018-04-19 | 2018-03-19 | 2018-02-19 | 2018-01-19 | 2017-12-19 | 2017-11-19 | 2017-10-19 | 2017-09-19 | 2017-08-19 | 2017-07-19 | 2017-06-19 | 2017-05-19 | 2017-04-19 | 2017-03-19 | 2017-02-19 | 2017-01-19 | 2016-12-19 | 2016-11-19 | 2016-10-19 | 2016-09-19 | 2016-08-19 | 2016-07-19 | 2016-06-19 | 2016-05-19 | 2016-04-19 | 2016-03-19 | 2016-02-19 | 2016-01-19 | 2015-12-19 | 2015-11-19 | 2015-10-19 | 2015-09-19 | 2015-08-19 | 2015-07-19 | 2015-06-19 | 2015-05-19 | 2015-04-19 | 2015-03-19 | 2015-02-19 | 2015-01-19 | 2014-12-19 | 2014-11-19 | 2014-10-19 | 2014-09-19 | 2014-08-19 | 2014-07-19 | 2014-06-19 | 2014-05-19 | 2014-04-19 | 2014-03-19 | 2014-02-19 | 2014-01-19 | 2013-12-19 | 2013-11-19 | 2013-10-19 | 2013-09-19 | 2013-08-19 | 2013-07-19 | 2013-06-19 | 2013-05-19 | 2013-04-19 | 2013-03-19 | 2013-02-19 | 2013-01-19 | 2012-12-19 | 2012-11-19 | 2012-10-19 | 2012-09-19 | 2012-08-19 | 2012-07-19 | 2012-06-19 | 2012-05-19 | 2012-04-19 | 2012-03-19 | 2012-02-19 | 2012-01-19 | 2011-12-19 | 2011-11-19 | 2011-10-19 | 2011-09-19 | 2011-08-19 | 2011-07-19 | 2011-06-19 | 2011-05-19 | 2011-04-19 | 2011-03-19 | 2011-02-19 | 2011-01-19 | 2010-12-19 | 2010-11-19 | 2010-10-19 | 2010-09-19 | 2010-08-19 | 2010-07-19 | 2010-06-19 | 2010-05-19 | 2010-04-19 | 2010-03-19 | 2010-02-19 | 2010-01-19 | 2009-12-19 | 2009-11-19 | 2009-10-19 | 2009-09-19 | 2009-08-19 | 2009-07-19 | 2009-06-19 | 2009-05-19 | 2009-04-19 | 2009-03-19 | 2009-02-19 | 2009-01-19 | 2008-12-19 | 2008-11-19 | 2008-10-19 | 2008-09-19 | 2008-08-19 | 2008-07-19 | 2008-06-19 | 2008-05-19 | 2008-04-19 | 2008-03-19 | 2008-02-19 | 2008-01-19 | 2007-12-19 | 2007-11-19 | 2007-10-19 | 2007-09-19 | 2007-08-19 | 2007-07-19 | 2007-06-19 | 2007-05-19 | 2007-04-19 | 2007-03-19 | 2007-02-19 | 2007-01-19 | 2006-12-19 | 2006-11-19 | 2006-10-19 | 2006-09-19 | 2006-08-19 | 2006-07-19 | 2006-06-19 | 2006-05-19 | 2006-04-19 | 2006-03-19 | 2006-02-19 | 2006-01-19 | 2005-12-19 | 2005-11-19 | 2005-10-19 | 2005-09-19 | 2005-08-19 | 2005-07-19 | 2005-06-19 | 2005-05-19 | 2005-04-19 | 2005-03-19 | 2005-02-19 | 2005-01-19 | 2004-12-19 | 2004-11-19 | 2004-10-19 | 2004-09-19 | 2004-08-19 | 2004-07-19 | 2004-06-19 | 2004-05-19 | 2004-04-19 | 2004-03-19 | 2004-02-19 | 2004-01-19 | 2003-12-19 | 2003-11-19 | 2003-10-19 | 2003-09-19 | 2003-08-19 | 2003-07-19 | 2003-06-19 | 2003-05-19 | 2003-04-19 | 2003-03-19 | 2003-02-19 | 2003-01-19 | 2002-12-19 | 2002-11-19 | 2002-10-19 | 2002-09-19 | 2002-08-19 | 2002-07-19 | 2002-06-19 | 2002-05-19 | 2002-04-19 | 2002-03-19 | 2002-02-19 | 2002-01-19 | 2001-12-19 | 2001-11-19 | 2001-10-19 | 2001-09-19 | 2001-08-19 | 2001-07-19 | 2001-06-19 | 2001-05-19 | 2001-04-19 | 2001-03-19 | 2001-02-19 | 2001-01-19 | 2000-12-19 | 2000-11-19 | 2000-10-19 | 2000-09-19 | 2000-08-19 | 2000-07-19 | 2000-06-19 | 2000-05-19 | 2000-04-19 | 2000-03-19 | 2000-02-19 | 2000-01-19 | 1999-12-19

Key: Value:

Key: Value:

MESSAGE
DATE 2012-02-25
FROM Ruben Safir
SUBJECT Re: [NYLXS - HANGOUT] Re: c++ question about decimals
On Fri, Feb 24, 2012 at 09:33:14AM -0500, Paul Robert Marino wrote:
> actually after looking into this further what i really need to do is
> grab just the remainder of the result of dividing 2 numbers I think
> fmod is the answer im looking for
>

What you have to remember is that the conversion from ints to floats is
OK but floats to a smaller digit has this long list of possible
behaviors and some are underfined.

if you want the remainder, the mod opertator is extremely useful and I
use it for psuedorandom generation, but you need to make sure everything
is a float of appropriate size.

Ruben

>
> On Fri, Feb 24, 2012 at 12:48 AM, Paul Robert Marino
> wrote:
> > my C programmings a little rusty and i could use some help
> > im working on a patch for keepalived i have to modify a portion of the
> > code that type casts several variables as a unsigned long however I
> > need to change it to an equivalent the will store it with a decimal
> > with 2 points of precision, and if possible wont change how other
> > parts of the code use the same functions with whole numbers does any
> > one have any suggestions.
> >
> > by the way in case any one is wondering im working on implementing
> > centisecond (hundredth) of a second intervals for VRRP per the RFC for
> > VRRPv3 http://tools.ietf.org/html/rfc5798
> > so far its going well but there are a few points in the code that are
> > doing crazy things like setting a sleep timer to 0 seconds which is
> > what I'm trying to fix now. that being said the rest of the patch
> > works great i was able to cut my interface failover times in nearly
> > down from 8 to less than 3 seconds total.

  1. 2012-02-03 Ruben Safir <mrbrklyn-at-panix.com> Subject: [NYLXS - HANGOUT] fly without a pilot...sounds great
  2. 2012-02-03 Elfen Magix <elfen_magix-at-yahoo.com> Re: [NYLXS - HANGOUT] fly without a pilot...sounds great
  3. 2012-02-05 Ruben Safir <mrbrklyn-at-panix.com> Re: [NYLXS - HANGOUT] fly without a pilot...sounds great
  4. 2012-02-05 Ruben Safir <mrbrklyn-at-panix.com> Subject: [NYLXS - HANGOUT] Charter Meeting
  5. 2012-02-05 Robert Menes <viewtiful.icchan-at-gmail.com> Re: [NYLXS - HANGOUT] Charter Meeting
  6. 2012-02-06 Ruben Safir <mrbrklyn-at-panix.com> Subject: [NYLXS - HANGOUT] best of Amsterdam
  7. 2012-02-06 einker <eminker-at-gmail.com> Re: [NYLXS - HANGOUT] best of Amsterdam
  8. 2012-02-06 Ruben Safir <ceo.brooklyn-at-gmail.com> Re: [NYLXS - HANGOUT] best of Amsterdam
  9. 2012-02-06 Ruben Safir <mrbrklyn-at-panix.com> Re: [NYLXS - HANGOUT] best of Amsterdam
  10. 2012-02-06 einker <eminker-at-gmail.com> Re: [NYLXS - HANGOUT] best of Amsterdam
  11. 2012-02-06 Ruben Safir <ceo.brooklyn-at-gmail.com> Re: [NYLXS - HANGOUT] best of Amsterdam
  12. 2012-02-06 einker <eminker-at-gmail.com> Re: [NYLXS - HANGOUT] best of Amsterdam
  13. 2012-02-07 Ruben Safir <mrbrklyn-at-panix.com> Re: [NYLXS - HANGOUT] best of Amsterdam
  14. 2012-02-07 Ruben Safir <mrbrklyn-at-panix.com> Subject: [NYLXS - HANGOUT] video to see
  15. 2012-02-08 Ruben Safir <mrbrklyn-at-panix.com> Subject: [NYLXS - HANGOUT] too much comics
  16. 2012-02-08 Ruben Safir <mrbrklyn-at-panix.com> Subject: [NYLXS - HANGOUT] cool cool
  17. 2012-02-13 Ruben Safir <mrbrklyn-at-panix.com> Subject: [NYLXS - HANGOUT] free software and photography
  18. 2012-02-13 Ruben Safir <mrbrklyn-at-panix.com> Subject: [NYLXS - HANGOUT] It shouldn't happen to a dog
  19. 2012-02-13 Elfen Magix <elfen_magix-at-yahoo.com> Re: [NYLXS - HANGOUT] It shouldn't happen to a dog
  20. 2012-02-13 Ronny <ronny.coder-at-gmail.com> Re: [NYLXS - HANGOUT] It shouldn't happen to a dog
  21. 2012-02-13 Elfen Magix <elfen_magix-at-yahoo.com> Re: [NYLXS - HANGOUT] It shouldn't happen to a dog
  22. 2012-02-13 Ruben Safir <mrbrklyn-at-panix.com> Re: [NYLXS - HANGOUT] It shouldn't happen to a dog
  23. 2012-02-14 Ronny <ronny.coder-at-gmail.com> Re: [NYLXS - HANGOUT] It shouldn't happen to a dog
  24. 2012-02-15 Ruben Safir <mrbrklyn-at-panix.com> Subject: [NYLXS - HANGOUT] [security-announce] openSUSE-SU-2012:0258-1: critical:
  25. 2012-02-15 Ruben Safir <mrbrklyn-at-panix.com> Subject: [NYLXS - HANGOUT] Amy Kaplan and here anti-semetic rants
  26. 2012-02-22 Ruben Safir <mrbrklyn-at-panix.com> Subject: [NYLXS - HANGOUT] Next NYLXS Meeting
  27. 2012-02-22 einker <eminker-at-gmail.com> Re: [NYLXS - HANGOUT] Next NYLXS Meeting
  28. 2012-02-22 Paul Robert Marino <prmarino1-at-gmail.com> Re: [NYLXS - HANGOUT] Next NYLXS Meeting
  29. 2012-02-22 einker <eminker-at-gmail.com> Re: [NYLXS - HANGOUT] Next NYLXS Meeting
  30. 2012-02-24 Paul Robert Marino <prmarino1-at-gmail.com> Subject: [NYLXS - HANGOUT] c++ question about decimals
  31. 2012-02-24 Paul Robert Marino <prmarino1-at-gmail.com> Subject: [NYLXS - HANGOUT] Re: c++ question about decimals
  32. 2012-02-24 Paul Robert Marino <prmarino1-at-gmail.com> Subject: [NYLXS - HANGOUT] Re: c++ question about decimals
  33. 2012-02-25 Ruben Safir <mrbrklyn-at-panix.com> Re: [NYLXS - HANGOUT] Re: c++ question about decimals
  34. 2012-02-25 Ruben Safir <mrbrklyn-at-panix.com> Re: [NYLXS - HANGOUT] Re: c++ question about decimals
  35. 2012-02-25 Ruben Safir <mrbrklyn-at-panix.com> Re: [NYLXS - HANGOUT] Next NYLXS Meeting
  36. 2012-02-25 Ruben Safir <mrbrklyn-at-panix.com> Re: [NYLXS - HANGOUT] Next NYLXS Meeting
  37. 2012-02-25 Ruben Safir <ceo.brooklyn-at-gmail.com> Re: [NYLXS - HANGOUT] Re: c++ question about decimals
  38. 2012-02-25 Ruben Safir <ceo.brooklyn-at-gmail.com> Re: [NYLXS - HANGOUT] Re: c++ question about decimals
  39. 2012-02-27 Ruben Safir <mrbrklyn-at-panix.com> Subject: [NYLXS - HANGOUT] Superhero wonders
  40. 2012-02-27 Michael L Richardson <mlr52-at-michaellrichardson.com> Re: [NYLXS - HANGOUT] Next NYLXS Meeting
  41. 2012-02-28 Ruben Safir <mrbrklyn-at-panix.com> Subject: [NYLXS - HANGOUT] New job Exciting Opportunity with Nvidia Graphics for the

NYLXS are Do'ers and the first step of Doing is Joining! Join NYLXS and make a difference in your community today!