A
Alexander Gorbylev
Hi all!
Test:
-----------------------------------
int MaxValue = 10; // =current value
int remainder=(int)(Math.DivRem(MaxValue, 2, out remainder));
RectangleF[] fillRectangles = new RectangleF[(int)(MaxValue / 2) +
remainder];
---------------------------------
(int)(MaxValue / 2) = 5 - it's right,
BUT:
remainder is 5
!!!!!!!
Why? Total fillRectangles.Lenght = 10
))
Test:
-----------------------------------
int MaxValue = 10; // =current value
int remainder=(int)(Math.DivRem(MaxValue, 2, out remainder));
RectangleF[] fillRectangles = new RectangleF[(int)(MaxValue / 2) +
remainder];
---------------------------------
(int)(MaxValue / 2) = 5 - it's right,
BUT:
remainder is 5
!!!!!!!
Why? Total fillRectangles.Lenght = 10
))