DivideAndRound?

Moderator: Pocus

Post Reply
kronenblatt
General - Carrier
General - Carrier
Posts: 4666
Joined: Mon Jun 03, 2019 4:17 pm
Location: Stockholm, SWEDEN

DivideAndRound?

Post by kronenblatt »

What is the number of resulting decimal points through the Round part of DivideAndRound ? Zero, i.e., to an integer value? Then rounding to closest integer, or simply cutting off decimals?
kronenblatt's campaign and tournament thread hub:

https://www.slitherine.com/forum/viewtopic.php?t=108643
Pocus
Ageod
Ageod
Posts: 7089
Joined: Tue Oct 02, 2012 3:05 pm

Re: DivideAndRound?

Post by Pocus »

It rounds to nearest, so 0.49 is 0 and 0.51 is 1. I think 0.50 is 1 but to be checked.

This gives an integer. Guarantee a minimum of 1 if you are worried with Max(1, value)
AGEOD Team - Makers of Kingdoms, Empires, ACW2, WON, EAW, PON, AJE, RUS, ROP, WIA.
Post Reply

Return to “MOD”