[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: float-integer error with \


Le 22/04/2025 à 18:46, Bruce Steers a écrit :
Appologies I guess the error is mine.
vbSize is a SpinBox and .Value returns a Float.
I did not try  iSize = (CInt(vbSize.Value) \ 3) * 3  :-\

I'm sure the code worked when i wrote it though.

Respects
BruceS


In master, SpinBox has been enhanced to support floating point values (and other new features). So now its Value property returns a Float, which cannot be handled by '\'.

By the way, I don't remember why '\' and 'MOD' cannot automatically convert floating points into integers, like the other operators. I see no reason at the moment.

Regards,

--
Benoît Minisini.


Follow-Ups:
Re: float-integer error with \Bruce Steers <bsteers4@xxxxxxxxx>
References:
float-integer error with \Bruce Steers <bsteers4@xxxxxxxxx>
Re: float-integer error with \Bruce Steers <bsteers4@xxxxxxxxx>