Did you ever find an answer to this?

I hope the code isn't to alternate row colours on a table!

A

On 28 Oct, 14:57, Matt C <[email protected]> wrote:
> In OpenBD (and probably all versions of ColdFusion), I notice a
> strange discrepency when using the Mod function on an obscenely large
> number.  Here's the example I ran across.  (2970670368 mod 36) results
> in "19".  In Java, I can't mod the number without type-casting it as
> something other than an Int.  BigDecimal, Double, and Long all give a
> result of "12", while type-casting as Float results in "16".
> Incidentally, googling "2970670368 mod 36" returns "12" as well.  I
> know CF is supposed to be "typeless", but I can't for the life of me
> figure out what CF is doing.  Nothing seems to give me the "19" that
> it returns.  Any ideas what's going on?
>
> Thanks for your time,
> Matt
--~--~---------~--~----~------------~-------~--~----~
Open BlueDragon Public Mailing List
 http://groups.google.com/group/openbd?hl=en
 official site @ http://www.openbluedragon.org/

!! save a network - trim replies before posting !!
-~----------~----~----~----~------~----~------~--~---

Reply via email to