Discussion Forum

float to ascii

Next Thread | Thread List | Previous Thread Start a Thread | Settings

DetailsMessage
Read-Only
Author
Omar Ospina
Posted
14-Jul-2006 22:41 GMT
Toolset
C51
New! float to ascii
Dear colleages,
I would like to know if there is some one on earth that have a routine to convet a number from float to ascii. I want to show a float point number on a display of 16x2.

An example would be perfect

Thanks

OE
Read-Only
Author
Dan Henry
Posted
14-Jul-2006 23:38 GMT
Toolset
C51
New! RE: float to ascii
If you own C51, you've got the sprintf() routine at your disposal. Read up on it.
Read-Only
Author
Neil Kurzman
Posted
15-Jul-2006 07:05 GMT
Toolset
C51
New! RE: float to ascii
modulus 10
divide by 10
repeat
Read-Only
Author
Satish Munot
Posted
15-Jul-2006 07:46 GMT
Toolset
C51
New! RE: float to ascii
mod 10
/10
is ok but do don't forget to add 0x30

Next Thread | Thread List | Previous Thread Start a Thread | Settings