| ??? 08/24/05 09:59 Read: times |
#99956 - Scale it Responding to: ???'s previous message |
Ghulam Mustafa said:
1/(Time period)=Frequency and frequency*60= RPM if u have some alternative in mind than infom me. Would it be so hard for you to write "you?" (See "COMMUNICATE AS CLEARLY AS POSSIBLE" in the forum rules http://www.8052.com/forum/rules.phtml ) You could scale it; eg, 100/(time_period) = frequency_times_one_hundred Just pick a suitable scaling factor so that you never have to worry about fractions - and remember that you're working in units of "Frequency * 100" (or whatever). You just insert the decimal point "manually" at the appropriate position when the time comes to finally display it. |
| Topic | Author | Date |
| Mathematics of Fractional # in Intel ass | 01/01/70 00:00 | |
| Search | 01/01/70 00:00 | |
| Actual task | 01/01/70 00:00 | |
| Lookup table? | 01/01/70 00:00 | |
| Scale it | 01/01/70 00:00 | |
| echo........... | 01/01/70 00:00 | |
| sounds like fun, but it will take you ma | 01/01/70 00:00 | |
| Using C | 01/01/70 00:00 | |
| C | 01/01/70 00:00 | |
| Space occupied | 01/01/70 00:00 | |
| That old chestnut! | 01/01/70 00:00 | |
| Example | 01/01/70 00:00 | |
| Does it really matter, anyhow? | 01/01/70 00:00 | |
why assembler | 01/01/70 00:00 | |
| If actual fraction numbers | 01/01/70 00:00 | |
| And decimal number, | 01/01/70 00:00 |



