[LON-CAPA-users] $i in startouttext
H. K. Ng
lon-capa-users@mail.lon-capa.org
Fri, 24 May 2002 10:46:16 -0400
Hi,
In doing some problem translation, $i within the <startouttext> is always
displayed as 0. Can someone try the attached problem on their server or is
it just my version (I just updated mine) that is doing it?
Hon-Kie
<problem>
<script type="loncapa/perl">
$i=&random(1.2,4.5,.1);
</script>
<startouttext />Display the current $i.
<endouttext />
<numericalresponse answer="$i" unit="A">
<textline size="10" />
</numericalresponse>
</problem>