solarisuser Posted August 31, 2006 Share Posted August 31, 2006 Hello,I am writing code for CPU Speed detection, and then inserts it into a MySQL DB. I have finished this part.What I need help with:I need to look at my speed variable, which will be something like 500, 800, or 3000.For example, if the CPUspeed variable is set to 1700, I want it to be modified to 1800. If its 1800, then leave it alone (or modify to 1800). If its 1690, I want it to be 1600.If its 3000, I want it to be 3000. If its 3110, I want it to be 3200.I just need it for the number, I do the Mhz and Ghz distinction later.Thanks! Link to comment Share on other sites More sharing options...
.josh Posted September 1, 2006 Share Posted September 1, 2006 please do not post the same question in different forums. Link to comment Share on other sites More sharing options...
Recommended Posts