gettingstarted
[Top] [All Lists]

Re: which operator?

To: Getting Started <gettingstarted at lists dot realsoftware dot com>
Subject: Re: which operator?
From: Lennox Jacob <lenpartico at yahoo dot com>
Date: Mon, 31 Jul 2006 20:33:02 -0700 (PDT)
Delivered-to: listarchive at realsoftware dot com
Delivered-to: gettingstarted at lists dot realsoftware dot com
Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:Received:Date:From:Subject:To:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=E2e1QUHbPUSrpu84Ww4gqS/5clQ/M5V1g/oqJ0tFk/bk67tJ+Fl2ruDRoPGipuN3TvOML/mF4+NedDU513Vh5r2fmceZR/rSWKVF2Kwi184GC3UFudOjNAliZ+i5bmUTKkOErW2FTMGheL4ciN2LtFTO4Qsd/bNNMTa7QH6b+4w= ;
Thanks Terry.
Lennox.

Terry Ford <tmford at shaw dot ca> wrote: 
On Jul 31, 2006, at 8:10 PM, Terry Ford wrote:

>
> On Jul 31, 2006, at 8:04 PM, Lennox Jacob wrote:
>
>> Hello,
>> Which operator is used to give the numerical value (without sign)  
>> of an integer?
>> (e.g. +6 returns as 6, -6 returns as 6)
>
> Abs  (Absolute)
>
> From the OLR:
>
> Dim d as Double
> d=Abs (23.9) //returns 23.9
> d=Abs(-23.9) //returns 23.9

To add to what I said:

It's the Abs Function which isn't an operator. This has to do with  
the syntax in how it's called.

You could also replace d As Double with d As Integer if you wish to  
ignore the fractional part.
The result in the example would be 23 instead of 23.9.

Terry

_______________________________________________
Unsubscribe or switch delivery mode:


Search the archives of this list here:



                        
---------------------------------
See the all-new, redesigned Yahoo.com.  Check it out.
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>


<Prev in Thread] Current Thread [Next in Thread>