• Michael R (unregistered)

    -Frist

  • (nodebb)

    I'm glad that when I work with hardware like that, I can use Python and libraries that handle this stuff for me.

  • (nodebb)

    And of course UInt16, no matter how you capitalise it, is the wrong internal data type for five-digit numbers anyway.

  • Greg (unregistered)

    W.r.t. rounding errors, they would probably have been better off inserting a decimal point/adding trailing zeroes in the value string before parsing as a double.

  • (nodebb)

    I also like the function name vs signature: public double ConvertIntToDecimal(...

    Given that the language has numeric types called both double and decimal how about the name it
    public double ConvertIntToDouble(... Or better yet
    public double ConvertIntWithFractionToDouble(...

    Or even better, create an object /struct that captures the two string values and exposes the value as a double (and/or a true decimal)

  • (author)

    " they're mistake is an easy mistake to make " I was so sure this was a clue.

  • (nodebb)

    Isn't a big chunk of the WTF here is on Janet's company? How did they pay the contractors and release them from the contract before actually checking if what they wrote worked at all? I admit I haven't worked myself with the kind of HPCs that do one project and skitter off, but that seems really financially irresponsible.

  • (nodebb)

    Fixed point arithmetics, pretty common in the embedded world.

  • Richard Brantley (unregistered) in reply to dorner
    Comment held for moderation.
  • PedanticRobot (unregistered)
    Comment held for moderation.
  • Nope (unregistered)

    They're mistake? Seriously?

  • Argle (unregistered)
    Comment held for moderation.

Leave a comment on “Consultant Conversions”

Log In or post as a guest

Replying to comment #:

« Return to Article