Quantcast
Channel: Microsoft Dynamics CRM
Viewing all articles
Browse latest Browse all 154803

Forum Post: RE: how to round a number DOWN

$
0
0
sorry i probably didn't explain properly, ive already tried that, it displays the result still rounded up. Also i didnt explain that my formula is only needed when DaysRemaining is below zero. So for example i have a number of days remaining as "-1656", if i divide that by 365 i get 4.56399 which then rounds up to 5. if i continue with the formula you suggested i still get the same result. Also i am using DaysRemaining for 5 other things so i cant use DaysRemaining for anything else due to the "5 deep" rule. Only way i have got near to figuring this out so far is to create two new fields YearsOverDec - decimal number calculating "(DaysRemaining/365)-((DaysRemaining/365)*2)" YearsOverWhole - whole number calculating "(DaysRemaining/365)-((DaysRemaining/365)*2)" i do that "(DaysRemaining/365)-((DaysRemaining/365)*2)" calculating "(DaysRemaining/365) will always give a minus figure when DaysRemaining is below zero, so this converts it to a positive figure. I then do: YearsOverDec-(1 -(YearsOverWhole - YearsOverDec) ) to give the figure rounded down problem is that the DaysRemaining field is then 5 deep. I suppose i could create a new field called "DaysRemaining2" using the same calc as days remaining as use this for one of the new fields instead of DaysRemaining so its not then 5 deep.

Viewing all articles
Browse latest Browse all 154803

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>