unable to print float

Im using ncurses but there seems to be NO WAY that i can print a float to the console. is that really not supported?
Ignore my comment, I skipped over the bit that this was about ncurses.
Last edited on
You can use printw or similar. It uses the same format as printf.
https://www.mkssoftware.com/docs/man3/curs_printw.3.asp
http://en.cppreference.com/w/cpp/io/c/fprintf
1
2
float fvalue = 1.2f;
printw("%f", fvalue);
Topic archived. No new replies allowed.