• korstmos@kbin.social
    link
    fedilink
    arrow-up
    1
    ·
    1 year ago

    Doubles have a much higher max value than ints, so if the method were to convert all doubles to ints they would not work for double values above 2^31-1.

    (It would work, but any value over 2^31-1 passed to such a function would get clamped to 2^31-1)