How can see upto 2 decimal points
how can i get the result upto 2 decimal points in a variable which is of
double type, when i do
system.out.print(variable name);
Use DecimalFormat.
DecimalFormat td=new DecimalFormat("0.00");
Similar Messages
-
Upto 4 decimal point for unit of measure
hi,
We have requirement to maintain upto 4 decimal point in PO and sales order quantity for unit of measure M3. Example PO quanity 0.3902 m3, sales order quantity 2.3212 m3, SAP allow upto 3 decimal point, how to handle this 4 decimal point for unit of measure and any impact to do so ?
best rgds,Dear Eric,
To change decimal places of Materials follow this:
IMG - SAP NetWeaver - General Settings - Check Units of Measurement
select Units of Measurement & select required Unit of Measure & set decimal places.
Hope this helps...
Give points if useful...
Thanks,
Jignesh Mehta -
Trim upto 2 decimal points + js
Hi,
I want to trim a decimal number upto 2 decimal points.ie i
want to show only 2 digits after the decimal point.How do i acheive
this in Javascript. I do not want to use the Round function as it
causes the value to change by 0.01.
this is the code i've been using:-
document.getElementsByName("totalincvat_value_nett")[0].value
= parseFloat(totalincvat_value_nett).toFixed(2);
Is there any way to show upto 2 decimal points and cut off
the rest?
thnxHi,
Have a try with this custom function (I found this in another
forum)..
function roundNumber(num, dec)
var result =
Math.round(num*Math.pow(10,dec))/Math.pow(10,dec);
return result;
} -
I cannot remember my security questions and I am not given the option to send to an alternate email address because I didn't have one set up at the time. How can I get past this point?
See Here... ask to speak with the Account Security Team...
Apple ID: Contacting Apple for help with Apple ID account security
Or Here > Apple Support iTunes Store Contact -
How can i create a NULL-Pointer
Hello,
how can i create a NULL-pointer (like in C) to call a DLL-function in Labview 8?
I have this function:
XXXXXX FuncName(int32 handle,
char * aCharName,
void * aVoidName,
int32 aInt32Name,
char * Msg);
and have to call it like this:
rc=InitCasRunF(&handle, NULL, NULL, NULL, msg);
When running the vi i get a popup with this message:
Labview: An exception occured within the external code called by a Call Library Function Node.
This might have corrupted Labview´s memory. Save any work to a new location and restart Labview.
VI "......." was stopped at Call Library Function Node Call Library FuncName 0x13E0 of subVI.
Democall.vi
The attached democall.vi is not the original but its like that.
Thanks for any help how i have to create thi NULL-pointer
Message Edited by NewOne on 01-25-2006 03:42 AM
Attachments:
democall.vi 8 KBThx for your help. Meanwhile it works. It was a stupid, easy thing i didnt see all the time.
I had to change the first parameter as--> Pass: "Pointer to value" instead of "Value". Thats all.
All NULL-values are passed as Int32-value.
One new problem occurs now: After runnning the function Labview crashes down.
Error-report is attached if someone can read someting in this.
When running the dll-function in a c-program it works
When calling the dll-function it in teststand it also works.
Message Edited by NewOne on 01-26-2006 05:14 AM
Attachments:
dce5_appcompat.txt 47 KB -
How can I create accurate decimal dimensions when creating a new document or using the art board in Illustrator CS6? When I type in a number with a decimal, it automatically rounds the number up.
For my part you are welcome, sdowers.
Unfortunately, the uncertainty arising from the rounding has been up several times here in this forum.
I just came to remember a warning that needs to be given:
The rounding of the representation of a numerical value may be harmless in itself, but if you use it for any operation that changes the value, such as multiplication or whatever, things will go wrong because the operation will be made on the basis of the rounded value instead of the true value. So, as in your first case in post #2, 39.625 rounded to 39.63 will become 79.26 instead of 79.25. -
[iPad] How can I get the popoverController pointer in the viewController
UIViewController* viewController = [[UIViewController alloc] init];
UINavigationController* navcontroller = [[UINavigationController alloc] initWithRootViewController:viewController];
UIPopoverController* aPopover = [[UIPopoverController alloc] initWithContentViewController:navcontroller];
[aPopover presentPopoverFromBarButtonItem:buttonID permittedArrowDirections:arrowDirections animated:YES]; // popup the popoverView
precondition:I can't pass the popoverController point to the viewController directly.
How can I get the popoverController pointer in the viewController?
I try to use the following function, but it can't get the popoverController:
self.navigationController.parentViewController
Message was edited by: MarginDThere is no "book box in preferences' general".
There is a new iBooks application that appears on Mavericks' dock. It looks like this:
Go there to add books from your Mac to your iPad. -
Cs6 , how can i add a anchor point in the curve in the channel Red or Green?
Hi
how can i add an anchor point in the curve in the Channel R / G and B?
in cs5 , with ctrl + click i was able to click on the image and add an anchor point in the curve channel RGB
and with shift +ctrl + click i was able to click on the image and add an anchor poing in the channel Red , 1 in the channel Green and 1 in the channel blue
i know cs6 doesn't have any more ctrl+mouse click , there is the targeted adjustamanent tool
i can do it with ctrl+m and call the curve
but i can't do it with curve adjustament tool
is there a way to add a anchor point in each channel red , green and blue (like the prev photoshop)?
thanksthanks that's correct! thanks
but it's not 100% correct
to add a multiple points in rgb shift+click doesn't work!
from adobe
Keyboard shortcuts: Curves
You can use these keyboard shortcuts for Curves:
To set a point on the curve for the selected color in each color component channel (but not in the composite channel), Shift+Ctrl-click (Windows) or Shift+Command-click (Mac OS) in the image.
To select multiple points, Shift-click points on the curve. Selected points are filled with black.
To deselect all points on the curve, click in the grid, or press Ctrl‑D (Windows) or Command-D (Mac OS).
To select the next higher point on the curve, press the plus key; to select the next lowest, press the minus key.
To move selected points on the curve, press the arrow keys.
(Curves dialog box) To set a point on the curve for the current channel, Ctrl-click (Windows) or Command-click (Mac OS) in the image.
If you’re instead using the Curves adjustment, simply click in the image with the On-image adjustment tool . -
How can I open a "Power Point Preview" presentation in MacBook pro .I have allready "Office For Mac". But still I could't. Is there a App. or anything else, to open it?
ThanksHave you tried launching PowerPoint on your Mac and then opening the file? I've never heard of anything that was a "PowerPoint 'Preview'" before...
Clinton -
How can I find the vanishing point with Labview?
I am using a myRIO for developing a system for helping visually imapaired people in their navigation. I have already done the image processing of what is being aquired by the camera (edge detection and finding of straight lines).
How can I fin the vanishing point from the two edges of a path in an image with LabVIEW? Is there any special function that I can use?
Thank you!
Solved!
Go to Solution.The vanishing point is the intersect of two lines, right?
https://www.google.com/webhp?sourceid=chrome-instant&ion=1&espv=2&ie=UTF-8#q=intersect%20point%20of%...
Machine Vision, Robotics, Embedded Systems, Surveillance
www.movimed.com - Custom Imaging Solutions -
Condition type value to have upto 7 decimal points
Dear All,
We are calculating yield. The client wants us to take the value upto the 7 decimal points. Can somebody help me how we can achieve this. If this is a development how can we have this.
Regards
ChakradharHello Paturi,
First you have to maintain the number of decimal places for the required currency.
This can be done in spro--> general settings --> currencies --> set decimal places for currencies.
Then the condition value comes automatically in the specified number of decimals.
Hope this info helps you.
regards,
Bhanu. -
How can you evaluate a graphed point in numbers
After you make a graph and incorporate a trendline. How can you evaluate that trend line at a specific x/y value point, even if it is not a graphed point in your table?
If you know the constants from the trendline then you can use them to extrapolate. To get the constants check the "Show Equation" box in the Chart Inspector > Series > Trendline
On the graph you will see the equation for the trendline:
In this case the equation is "y=2.6x + 2"
I added a new column to the data table and named is "Y extrapolated".
Then I highlighted the graph
Then click on the "sprocket " for the X values in the data table and select the "Share X Values"
Then click and hold the little circle at the bottom right corner of the selection in the table (to add the new column to the graph), then drag to the right one colum (my column is green).
Then in the new column add the formula as shown:
C7=2.6*A7+2
select C7 and fill down as need (by clicking and holding on the little circle at the bottom right of the selected cell).
I hope this helps -
How can i trace just 1 point on a graph from my instrument??
i'm developping an software to get S parameters data with their graph.I'd like to dosplay the markers from my instrument too.How can i do it? thanks
I think what you are asking is that you want to read one point from your instrument and plot it to a graph? If so, you will need an interface to your instrument, such as a GPIB or serial card, depending upon what tyep of instrument it is. Once you do that, you can use the driver software to interface LabVIEW with the instrument.
When you have that working, you will need to determine if their is a LabVIEW instrument driver for your instrument. If so, use that to communicate with the instrument and plot the data to a graph. If not, you will need to find which command strings the instrument accepts and send those using the hardware driver. Then you can read back the data and plot it to a graph.
J.R. Allen -
How can I add a decimal in a string?
Hi,
I try to make a function to insert a decimal point after the 3rd position in a string if length of that string is >= 4
I try as belows:
If LENGTH(str) >= 4 THEN
rdstr := SUBSTR(str, 3);
ldstr :=
TRIM(TRAILING rdstr FROM str);
str := CONCAT(CONCAT(ldstr, '.'), rdstr);
Is there any other better way to this that can save DML actions?
Thanks a lot!
nullIf length(str) > 4 Then
str:= substr(str,1,3)| |'.'| |substr(str,4,length(str)-3);
End If;
null -
How to get values after decimal point
Hi,
source value is 12345.678 i wana the target side in 12345 in field and 678 in one field.
the source value its not fixed before decimal point value pass to one field and after decimal point value pass to other field
please help to me how to do this one.Hi Swathip,
You dont need to create 2 UDFs. You just need to create 1 simple UDF which takes one string array as input as usual and it has 2 Resultlist outputs. You need to map this 2 outputs from the UDF to the respective 2 target side fields where the values are to be mapped, one containing the portion before the decimal, and one after the decimal.
I HAVE TESTED THE UDF AND IT WORKS ABSOLUTELY FINE.
THE CODE FOR THE UDF IS AS FOLLOWS:
public void sepDec(String[] num,ResultList wholeNum,ResultList afterDec,Container c)
String part1=null; // Stores the part before the decimal point
String part2=null; //Stores the part after the decimal point
if(num[0]!=null && num[0]!=""){
int index = num[0].indexOf(".");
part1 = num[0].substring(0,index);
part2=num[0].substring(index+1, num[0].length());
wholeNum.addValue(part1);
afterDec.addValue(part2);
THIS UDF IS A CLASSIC EXAMPLE WHERE AN UDF HAS 2 OUTPUTS, WHICH IS VERY RARELY SEEN BUT VERY MUCH CORRECT
PLEASE LET ME KNOW IF THIS CODE WAS HELPFUL TO YOU
CHEERS,
BISWAJIT
Edited by: 007biswa on Feb 8, 2011 5:02 PM
Maybe you are looking for
-
How do I get my wireless printer, to print homework , and from the internet on my laptop
HP touch smart all in one printer, Model isD110a, window xp, vista, 7 did not run in computer, did not act knowledge disk [Personal Information Removed]
-
In Project stock valuation during GR MAP is picked up from VMVER field
Hi! We are facing an issue during the GR of Material in Production order. I will explain the scenario: The main material is valuated in MAP (Moving average price). On creation of the production order the planned value is coming ok ( summation of comp
-
Cursor moves on it's own on my 24" imac
My cursor moves on it's own. I do not have a trackpad, or Timbuktu (not sure what that is?) I have used apple support on this once all ready. They had me do a restart from the system disk, run Disk Utility, unplug everything wait and then replug, zap
-
dear sap guru, Service purchase requistion text filed is not coming to related with that gate entry pass. For Example, in PR, we are putting in Header coloumn, about material details, quantity. It is not coming to Gate entry pass. How we can get this
-
Viewing SQL Server data(NTEXT column) to Oracle
Hi, I m trying to connect Oracle 12c to MS SQL (Gateway) HTRAPORU column is NTEXT type on MS SQL SELECT T.HTRAPORUTEXT, T.HTRAPORU, T.DURUMID, T.LABOZELNOT, T.SGTARIHSAAT, T.LABKABULTARIHI, T.CALISMABASLAMATARIHI, T.CALISMA