; Abs Example ; ----------- ; Abs strips the sign from a number: negative values become positive, ; positive values and zero are unchanged. Print "Abs(7) = "+Abs(7) Print "Abs(-7) = "+Abs(-7) Print "Abs(-3.5) = "+Abs(-3.5) Print "Abs(0) = "+Abs(0) Print "" ; Handy for distances: how far apart two racers are on a track, ; whichever one is in front racer1=120 racer2=200 Print "Racer positions: "+racer1+" and "+racer2 Print "Gap between them: Abs("+racer1+"-"+racer2+") = "+Abs(racer1-racer2) Print "" Print "Press any key to close the example" WaitKey End