Welcome!

Sue Hove

Subscribe to Sue Hove: eMailAlertsEmail Alerts
Get Sue Hove via: homepageHomepage mobileMobile rssRSS facebookFacebook twitterTwitter linkedinLinkedIn


Top Stories by Sue Hove

There's an important distinction between using the / and \ operators in doing division in CF. Using the forward slash (/) returns real division, with all decimal points intact, as one would expect. Using the back slash (\) returns integer division, without the decimal points. Examples: returns 2.5 returns 2 The documentation does list the 2 operators, but doesn't distinguish the effect. It can certainly change the value if mixed up in code, though it can of course be a benefit if you intend to ignore the decimal points. ... (more)