I've not heard of codevision but it seems to me that you are able to use sprintf in it.
You should use the same sprintf in arduino, which is C. There is no printf syntax in lcd.print. There is no printf anywhere. Arduino Dev board has no standard output device.
Also you won't see 2,5 you will see 2.5
C was invented in America, where people use a dot to separate digits before and after decimal "point".
It sounds like youre doing something very similar to what I was doing. I had to convert that float (double in my case) to a string that the LCD could understand first.
There is one small issue....
The avr-gcc tools has multiple versions of the xxprintf() library functions.
The default version, which is used by the IDE, does not support floating point.
Unfortunately, the IDE does not allow you to change the linker options to pull in the
other versions of the xxxprintf() functions.
Because of that, you will not be able to use sprintf() for floating point output.
(You can but then you have to abandon using the IDE and use your own makefiles)
The Arduino Print class, which is what is called when you do something like lcd.print()
does not support printf() style formatting.
The formatting provided by the Arduino Print class is very wimpy
and only supports simple strings and numbers.
(Most output formatting in C++ is no where near as simple and capable as the tried and true C xxprintf() routines)
So in order to do what you want using the standard Arduino Print class,
you have to something like:
(I'm assuming that you didn't want the space between the voltage and the "v" as in your codevision sample code)
float vol = 2.5;
lcd.setCursor(0, 1);
lcd.print("volts = ");
lcd.print(vol);
lcd.print('v'); // could also use the string "v" or " v" if you want the space
Unfortunately, it looks like the Print class doesn't have its own documentation,
so here is some additional information on the Print class that is available in the serial class.
Ignore the serial references, since the print function can be called from the lcd object.