473,387 Members | 1,691 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

How to change the amount into -ve in CR ?

if {tmp_csinvinfo_os.debit}-{tmp_csinvinfo_os.credit} 0 then
{tmp_csinvinfo_os.netbaseamt}
else
({tmp_csinvinfo_os.netbaseamt} *(-1)
the above code can't return the -ve value , how can i change the value into -ve ???
Thanks a lot

Jun 27 '08 #1
1 756
sorry for my stupid question.
i solved it .
"Agnes" <Ag***@abc.com¼¶¼g©ó¶l¥ó·s»D:%2****************@TK 2MSFTNGP05.phx.gbl...
if {tmp_csinvinfo_os.debit}-{tmp_csinvinfo_os.credit} 0 then
{tmp_csinvinfo_os.netbaseamt}
else
({tmp_csinvinfo_os.netbaseamt} *(-1)
the above code can't return the -ve value , how can i change the value into -ve ???
Thanks a lot

Jun 27 '08 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: Bryan R. Meyer | last post by:
I am a relatively new C++ programmer and am attempting to write a function that takes a number of type float and adds commas to it in the appropriate places. In order to manipulate the number to...
2
by: new2me | last post by:
Homework Assignment: Write program to compute the coins necessary to return change made up of quarters, dimes, nickels, and pennies. We are not allowed to use if/else or loops in this program. ...
5
by: PBJ | last post by:
I cant seem to get this right im tring to find the optimal solution and the user imput is 219 how do i get the user to imput a number and what is wrong with my coding am i atleast close HELP ...
1
by: monkey1001 | last post by:
my program is suppose to show my due change and i got it working but my change and coins are wrong how can i improve it thank you..(its supposed to be in java)
12
by: psychofish25 | last post by:
I'm brand new to C++, yet I have experience in many other languages. This script I wrote prompts the user for a change amount, then calculates the amounts of each coin that amount is. For example, 37...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.