draw3d: plotting labels w/ 3 digit accuracy



El dom, 11-08-2013 a las 15:13 +0200, Marco escribi?:
> Hi All,
> 
> I want to plot labels w/ 3 digit accuracy using draw3d.
> 
> I can print w/ this accuracy using 'fpprintprec:3', however, the plot
> still shows 16 digit accuracy. Example given below. Any suggestions?
> 
> Thanks, Marco
> 
> load("draw");
> fpprintprec:3;
> xval:0.0;
> yval:2.0;
> zval:3.0;
> length:sqrt(yval^2+zval^2);
> draw3d(label([length,xval,yval,zval]));


You have to create a string with the numbers of decimals you wish (3 in
the example), 'fpprintprec' doesn't play any role in this context.

s: printf(false,"~,3f",length);
draw3d(label([s,xval,yval,zval]));

--
Mario