The time transmitted from ALLSTAR DATA SOURCE is doubletype,and wanted to display time to LCD,so I want to convert double type to float ,and want to uS.How can i do that? Thanks a lot!
How will that help you to display it on an LCD? In 'C', a simple assignment will do it - but, If you already have the value as a double, why can't you just display that, and insert any decimal point "manually" as required?? Remember, the free Evaluation version doesn't do floating point...
"Remember, the free Evaluation version doesn't do floating point..." And neither version does double in the commonly assumed 64 bit IEEE format. In C51 a double and a float are both 32 bit.
View all questions in Keil forum