Joe Strazzere - All Things Quality

Visit my new blog at http://strazzere.blogspot.com/


December 1, 2005 - WinTask - AbsInt

Posted in WinTask

'
' AbsInt - return the absolute value of a number
'
' Author: Joe Strazzere

'
' note: ABS is a WinTask keyword
'
Function AbsInt(int)
    If int < 0 Then
        AbsInt = -1 * int
    Else
        AbsInt= int
    EndIf
EndFunction

 

msgbox("The absolute value of "+Str$(-123)+" is "+Str$(AbsInt(-123)),0,"AbsInt")


<- Last Page :: Next Page ->

About Me

A gathering place for information and ideas about Quality Assurance, Testing, and other useful topics.

Problems cannot be solved by the same level of thinking that created them. - A. Einstein

Search This Site

Translate This Site

RSS Feed

Subscribe

Twitter

@jstrazzere

Categories

Life
QA
Sports
Tools
WinTask
Work in General

What I'm Reading Now