how to round decimal values in crystal report - crystal-reports

How do I round a formula result decimal value from 28.234 to 28.24 in crystal reports.
I am only getting 28.23 when I set the decimal to .00.
The field is formatted as a custom field: (decimal = 1.00 and rounding = 0.01).
Using Crystal Reports Version 2013.

Create a formula and use the RoundUp-function:
RoundUp(28.234, 2)

Related

How do I set decimal number format in percentage total format on Cross-Tab report table

Crystal Reports 11.5 - I have tried to format the % objects in the cross-tab table to show 1 or 2 decimals but it is not saving. As a result the values are all rounded and so the sum of the sub totals does not add to 100% (sometimes only 97%) even the GT shows 100%.
How do I edit the format and save this?image show table sample with wrong values

calculating the sum of a formula filed in crystal report

I need help in calculating the sum of a formula filed in crystal report. I have a formula filed '#ClosingBalQty' ,I want to calculate the 'sum({ClosingBalQty}).
As its a formula it return an error.Can any one tell me how to just get total of '#ClosingBalQty'

Fraction issue in Crystal Report

I am facing a strange problem in crystal report 2008
I have a table (mytable) with two columns col1 is string and col2 is float(15)
Below are values in table
Col1 Col2
AA 5.82518987E-5
BB 5.88383009E-5
Created a report in crystal report and placed mytable values on report for col1 it displays correct value but for COL2 it always displays FOR AA "0.0000582519" AND FOR BB "0.0000588383" instead of actual value in the table.
This is what in Crystal report instead of actual value.
Col1 Col2
AA 0.0000582519
BB 0.0000588383
Please help
Thanks
CR has the interesting limitation that the highest precision numeric value it can display is 10 decimal places (this includes trying to use the totext() function to cast the number to a string). This means that any float over that precision will be rounded at that tenth decimal.
Because of this and the fact that you're using a float which is precise up to 15 digits, the quick and dirty solution is to just manually convert to scientific notation by moving your decimal place over 5. You can accomplish this with something like:
totext({table.numeric} * 10^5,10) & "E-5"
Obviously, this will just indiscriminately convert all your numbers in Col2 to scientific notation whether they require it or not, so you may wish to add some additional conditional processing.
Note that if you Google "Crystal Reports scientific notation" you can find some custom functions to do that for you... but just be careful because a lot of these functions do not take the additional precision into account and WILL result in a much less precise number. In fact, the very first hit (HOw to display Number in Scientific Notation in version 2008) will chop that precision down to 10 digits in the very first line by using the totext() function.

a percentage values in crystal report

I have values in database witch is a percentage values for example:
Per columns : 90,85,38,70,85
I select “Per” as the value to be shown in the bar chart
But when I run my crystal report all my bar display as 100%
It does not take the exact value of “Per”
How can I solve this problem?
If your column values are whole numbers then you should probably create a formula to calculate the fraction. Then you should be able to display as a percentage. Eg. {table.fieldname} * .01

Field padding while dropping commas and decimal in Crystal Reports

I am trying to create a formula field in Crystal Report XI that takes a monetary/numeric field and converts it to 10 characters with preceding zeroes, while dropping any commas or decimals. For example: 2,907.41 becomes 0000290741. Does anyone have any idea of how to do this?
totext(({table.number}*100),"0000000000")