text output, pleeese help

I’ve created a program using glui so when the user inputs various things into the text boxes the opengl window’s drawing changes.
Some of the values inputed into the glui window are used in equasions to calculate other variables, i know the calculations are going ok, because that’s how the opengl window changes. My problem: i want to output these variables that are calculated from the glui window inputs, directly onto the opengl window, the bigger problem is that they are floats…any help is appreciated, thanks

one of you have to know this

use vsprintf to put the floats into a string.
then you can output the string.
if you don’t know how, look at nehe’s font
tutorial

spectrum

thanks a ****-load