Report Design
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Report Design
Message Icon Topic: Decimals Post Reply Post New Topic
Author Message
bal1
Groupie
Groupie


Joined: 28 Nov 2012
Online Status: Offline
Posts: 44
Quote bal1 Replybullet Topic: Decimals
     Posted: 20 Feb 2013 at 3:11am
Hi All,

I have a column of results in my report that is using a couple of formulas. The formula simply converts the value pulled in ToNumber, then back ToText to concatenate with a string. Anyway, it ends up being text so the Number is not controlled.
My issue...
My data has various decimal places. I wish for the report to spit out the exact numbers that it pulls in from the database, with no decimal formatting, but can't seem to "shut that off". As text, there is not control within the actual field formatting. By default it's displaying out to two decimals, which it's getting from File>Options>Fields>Number. Since my data is not consistent with decimals, I just want the values that were entered, as-is, into the database to display on my report. Surely this is doable. THANKS!!
IP IP Logged
bwsanders
Senior Member
Senior Member


Joined: 05 Sep 2012
Location: United States
Online Status: Offline
Posts: 177
Quote bwsanders Replybullet Posted: 20 Feb 2013 at 7:48am
can you right click and format the field? 
IP IP Logged
bal1
Groupie
Groupie


Joined: 28 Nov 2012
Online Status: Offline
Posts: 44
Quote bal1 Replybullet Posted: 20 Feb 2013 at 7:57am
Yes, but the Format Editor is for Text given my formula:
IF isnull ({UNITS.DISPLAY_STRING})
    THEN totext({@Results})
ELSE ({@resultconcat})

I had to use ToNumber in my results formula in order to summarize the data (average), then spit it back out as text (above) in order to concatenate with a string.
IP IP Logged
Printable version Printable version

Forum Jump
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum