Casting float to integer costing 800 bytes of program memory

Thanks for that, nice to know about the double as float. I tried adding some other code.

double q = 32767.32767;
int z = (int) q;

no change in program space at all.