Wednesday 27 August 2014

Long-Type Division

An exercise in typecasting:

double freq = 3;
long period = 1000/freq;

period will hold the value 333.

No comments:

Post a Comment