Except sprintf
is there any method for obtaining same?
Please give an example with some explanation
actually what problem i am facing is that i can't get decimal point on hyperterminal with sprintf
views:
41answers:
1
A:
That is because sprintf
puts the result into a string. You should use plain old printf
instead, which prints it to stdout
:
printf("%f", 1.234);
Delan Azabani
2010-09-14 12:24:02
actually my hardware dont support print statement do you have any via media for this problem
stranger
2010-09-14 12:46:33