Welcome to the Traders Laboratory Forums.
Coding Forum Collaborate, receive help, or discuss coding related issues.

Reply
Old 06-02-2010, 07:53 AM   #1
aaa

aaa's Avatar

Join Date: Jun 2008
Location: Switzerland
Posts: 443
Ignore this user

Thanks: 240
Thanked 283 Times in 136 Posts

Algebric Question

Hi

I wish 2 change an always negative result 2 a positive one

example

B4
NumtoStr(31 / - 18, 2);
= - 1.72

After
(NumtoStr( ( 31 / - 18 ) something here, 2 );
= 1.72


I've tried 2 multiple by - 1 w/O result

ThanX

Last edited by aaa; 06-02-2010 at 08:01 AM.
aaa is offline  
Reply With Quote
Old 06-02-2010, 08:02 AM   #2

Tams's Avatar

Join Date: Sep 2008
Location: Geelong
Posts: 3,779
Ignore this user

Thanks: 2,084
Thanked 1,474 Times in 912 Posts

Re: Algebric Question

.......... use AbsValue



;-)
__________________



Only an idiot would reply to a stupid post
Tams is offline  
Reply With Quote
The Following User Says Thank You to Tams For This Useful Post:
aaa (06-02-2010)
Old 06-02-2010, 08:05 AM   #3
aaa

aaa's Avatar

Join Date: Jun 2008
Location: Switzerland
Posts: 443
Ignore this user

Thanks: 240
Thanked 283 Times in 136 Posts

Re: Algebric Question

ThanX TAMS

So quick !!!!

How can we do w/o U ?????????

If we give U 1 $ 4 each solution U give U shoud B millionaire !

************************* *******

NumtoStr(AbsValue(31 / - 18 ), 2);
= 1.72

************************* **********

AbsValue
Returns the absolute value of the specified numerical expression. Usage
AbsValue(Value)
Where: Value - a numerical expression
Examples
AbsValue(45.275) will return a value of 45.275
AbsValue(-1385) will return a value of 1385

Last edited by aaa; 06-02-2010 at 08:11 AM.
aaa is offline  
Reply With Quote
The Following User Says Thank You to aaa For This Useful Post:
Tams (06-02-2010)
Old 06-02-2010, 08:29 AM   #4

Tams's Avatar

Join Date: Sep 2008
Location: Geelong
Posts: 3,779
Ignore this user

Thanks: 2,084
Thanked 1,474 Times in 912 Posts

Re: Algebric Question

My middle name is Easy.

;-)>
__________________



Only an idiot would reply to a stupid post
Tams is offline  
Reply With Quote
Old 06-02-2010, 03:35 PM   #5

Join Date: Apr 2010
Location: ???
Posts: 136
Ignore this user

Thanks: 106
Thanked 33 Times in 23 Posts

Re: Algebric Question

Like a sunday morning....
macdfx is offline  
Reply With Quote

Reply

Thread Tools
Display Modes Help Others By Rating This Thread
Help Others By Rating This Thread:


Similar Threads
Thread Thread Starter Forum Replies Last Post
Question About Es topherea Beginners Forum 22 06-25-2010 12:38 AM
Amibroker - Simple Inside Bar Trading System Question illumintai Coding Forum 7 05-29-2010 03:54 AM

All times are GMT -4. The time now is 02:53 PM.
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
CS to VB integration by DeskLancer
©2006-2011 Traders Laboratory, All Rights Reserved.