Logiweb(TM)

Logiweb aspects of round1 ( " , " ) in pyk

Up Help

The "pyk" aspect

Define pyk of round1 ( asterisk , asterisk ) as "round1 ( "! , "! )" end define

The "value" aspect

define value of round1 ( x , y ) as LET floor1 ( x , y ) BE { z IN if { z tail * 2 } < y then z else if { z tail * 2 } > y then { z head + 1 } :: { z tail - y } else if evenp ( z head ) then z else { { z head + 1 } :: { z tail - y } } } end define

The pyk compiler, version 0.1.9 by Klaus Grue,
GRD-2007-07-12.UTC:20:10:57.067491 = MJD-54293.TAI:20:11:30.067491 = LGT-4690987890067491e-6