Go Back   TechArena Community > Software > Software Development
Become a Member!
Forgot your username/password?
Register Tags Active Topics RSS Search Mark Forums Read

Sponsored Links



How to convert negative values from php to positive

Software Development


Reply
 
Thread Tools Search this Thread
  #1  
Old 06-08-2009
Member
 
Join Date: Apr 2009
Posts: 51
How to convert negative values from php to positive
  

I wanted to import the data in Excel 97 which contains a field called DetailAmount. All numbers are in positive. It should happened in the runtime that when the user enter negative value and when i store into variable(type Double) then I should convert to positive value. Could anyone PLease give me some tips.

Reply With Quote
  #2  
Old 06-08-2009
Member
 
Join Date: Dec 2008
Posts: 183
Re: How to convert negative values from php to positive

Create a singleton Administrator object with a method public boolean isAdministrator(). If you in your MainFrame class want to refer an object then that objects scope must cover the method(s) where you want to reference the object. This you may also achieve by using the IF methos as follows:

If NegativeValue < 0 then
NegativeValue = NegativeValue * -1
End If
Reply With Quote
  #3  
Old 06-08-2009
Member
 
Join Date: Jan 2009
Posts: 96
Re: How to convert negative values from php to positive

All you need is an object with a reference to both frames or both tables. If you add another parameter then the method signature (its name and its parameter types and sequence) is not the ActionListener interface implementation. Any objects interested in the login status of the Adminstrator register themself at that object and change their state accordingly when they receive an event.
Reply With Quote
  #4  
Old 06-08-2009
Member
 
Join Date: Apr 2009
Posts: 51
Re: How to convert negative values from php to positive

I've tried inserting your expression into a query grid, but it's not working. In the constructor of this class, I created a new user by User user = new User(). I also tried to insert a minus sign (-) at the far left of the number I need to change to a negative, but it doesn't work either.
Reply With Quote
Reply

  TechArena Community > Software > Software Development
Tags: , , ,



Thread Tools Search this Thread
Search this Thread:

Advanced Search


Similar Threads for: "How to convert negative values from php to positive"
Thread Thread Starter Forum Replies Last Post
Endless Space game positive and negative points Angud Video Games 5 14-07-2012 11:47 AM
Acer Iconia A700 positive and negative points --MasseySian-- Portable Devices 6 28-06-2012 06:48 PM
Sony Xperia P negative and positive points cech Portable Devices 5 23-05-2012 05:20 PM
How to position X axis in Excel chart with negative values in it Nikhilas MS Office Support 3 25-02-2012 11:25 AM
How to Convert Film Negative to Positive Photos Aarya Customize Desktop 3 03-07-2009 02:43 PM


All times are GMT +5.5. The time now is 01:53 PM.