Joe Strazzere - All Things Quality

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


December 1, 2005 - WinTask - AbsReal

Posted in WinTask

'
' AbsReal$ - return the absolute value of a real number
'
' Author: Joe Strazzere

'

Function AbsIntReal$(in$)
    If val(in$) < 0 or val(Multiply$(in$,"10000000000")) < 0 Then
         AbsIntReal$ = Multiply$("-1.0",in$)
    Else
         AbsIntReal$= in$
    EndIf
EndFunction

 

msgbox("The absolute value of -123.45 is "+AbsIntReal$("-123.45"),0,"AbsIntReal$")


<- 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