[LON-CAPA-users] prettyprint going to pdf question

Guy Albertelli II lon-capa-users@mail.lon-capa.org
Mon, 19 Jun 2006 02:39:36 -0400 (EDT)


Hi Brew,

> <problem>
> <script type="loncapa/perl">#Enter the computations here
> $mass = &random (1e5,4e5,0.25e5);
> $right=&prettyprint($mass ,"2e");
> </script>
> 
> ....
> <startouttext />The answer is $right <endouttext />

BTW for future, I suggest this as likely a better mechanism:


<problem>
<script type="loncapa/perl">
$mass = &random (1e5,4e5,0.25e5);
</script>
....
<startouttext />The answer is <num foramt="2e">$mass</num> <endouttext />


-- 
guy@albertelli.com   0-7-1-8-27,137