Price fraction: Difference between revisions

m
→‎[[Price Fraction#ALGOL 68]]: wont work with|ELLA ALGOL 68 - specimen requires formatted transput
m (→‎[[Price Fraction#ALGOL 68]]: wont work with|ELLA ALGOL 68 - specimen requires formatted transput)
Line 67:
 
{{works with|ALGOL 68G|Any - tested with release [http://sourceforge.net/projects/algol68/files/algol68g/algol68g-1.18.0/algol68g-1.18.0-9h.tiny.el5.centos.fc11.i386.rpm/download 1.18.0-9h.tiny]}}
{{workswont work with|ELLA ALGOL 68|Any (with appropriate job cards) - tested with release [http://sourceforge.net/projects/algol68/files/algol68toc/algol68toc-1.8.8d/algol68toc-1.8-8d.fc9.i386.rpm/download 1.8-8d] - specimen requires formatted transput}}
 
{{works with|ELLA ALGOL 68|Any (with appropriate job cards) - tested with release [http://sourceforge.net/projects/algol68/files/algol68toc/algol68toc-1.8.8d/algol68toc-1.8-8d.fc9.i386.rpm/download 1.8-8d]}}
<lang algol68>main:
(
Line 97 ⟶ 96:
OD;
 
printf(($"Value : "g(0z.2dl,2)l"Converted to standard : "g(0,2)lz.2dl$, price, std val))
)</lang>
Sample Output:
<pre>
Value : 0.6838
Converted to standard : 0.7854
</pre>
 
=={{header|BASIC}}==