[vtkusers] Set decimal digits in vtkVariant
Xiaopeng Yang
yxp233 at postech.ac.kr
Tue Jan 25 09:15:48 EST 2011
Greetings!
May I ask how to set decimal digits in vtkVariant? For example, I would like
to set one decimal digit for the double type variable: vol2/1000.
Here is part of my code:
std::string message = "Resected volume = ";
message += vtkVariant( vol2/1000 ).ToString();
Thanks,
Yang
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20110125/c97c910f/attachment.htm>
More information about the vtkusers
mailing list