Technical Questions
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Technical Questions
Message Icon Topic: Add decimal in number field. Post Reply Post New Topic
Author Message
CircleD
Senior Member
Senior Member
Avatar

Joined: 11 Mar 2011
Location: United States
Online Status: Offline
Posts: 251
Quote CircleD Replybullet Topic: Add decimal in number field.
    Posted: 15 Jun 2011 at 2:59pm
I have a report with several number fields that always have 4 digits.What I want to do is format the fields to show the last number as always a single decimal (it will always be either a 0 or a 5).What I'm thinking is to format each field to show 1 decimal and use a formula like {TABLE.FIELD}=({TABLE.FIELD}*.1). Would this work or is there a better easier way? I ask instead of trying it out because it's a number of fields and it's a lot of wasted time if it won't work.
IP IP Logged
DBlank
Moderator
Moderator


Joined: 19 Dec 2008
Online Status: Offline
Posts: 9053
Quote DBlank Replybullet Posted: 15 Jun 2011 at 4:54pm
if it is simply display then '.' + right(totext(numberfield,0,''),1)
IP IP Logged
CircleD
Senior Member
Senior Member
Avatar

Joined: 11 Mar 2011
Location: United States
Online Status: Offline
Posts: 251
Quote CircleD Replybullet Posted: 16 Jun 2011 at 12:39pm
I can see where that might be easier and better in the long run.Thanks.
IP IP Logged
Post Reply Post New Topic
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



This page was generated in 0.000 seconds.