G
Guest
double DesignGlassPriceDbl =WindowAreaSqFtInt * DesignGlassPricePSF;
int DesignGlassPriceInt= System.ConvertToInt32(DesignGlassPriceDbl);
In the above code, if "DesignGlassPriceDbl" is 213.33, DesignGlassPriceInt
evaluates to 104, not 213.
How can I convert a double value to an Int? Dropping .33 in the process is
OK, but not dropping (for some reason inexplicable to me) 109.33.
int DesignGlassPriceInt= System.ConvertToInt32(DesignGlassPriceDbl);
In the above code, if "DesignGlassPriceDbl" is 213.33, DesignGlassPriceInt
evaluates to 104, not 213.
How can I convert a double value to an Int? Dropping .33 in the process is
OK, but not dropping (for some reason inexplicable to me) 109.33.