Technical Questions
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Technical Questions
Message Icon Topic: 3 decimel places Post Reply Post New Topic
Author Message
Mayoflash
Newbie
Newbie
Avatar

Joined: 06 Jan 2010
Location: Ireland
Online Status: Offline
Posts: 4
Quote Mayoflash Replybullet Topic: 3 decimel places
    Posted: 06 Jan 2010 at 6:23am
CR 8.0
 
Currently on an engineering report the tolerence column has 2 decimal places (1.00). However, I need to increase this to 3 (1.000). How would I go about doing this?
 
Below is the current code used:
 
if {equip.cservice}= "Weigh Scale" or {equip.cservice} = "Weight Indicator Transmitter"
then left(cstr({toldetail.nupptol}),len(Cstr({toldetail.nupptol}))-1)
else Cstr({toldetail.nupptol})
 
Regards
 


Edited by Mayoflash - 06 Jan 2010 at 7:52am
Crystal Novice
IP IP Logged
kevlray
Admin Group
Admin Group
Avatar

Joined: 29 Oct 2009
Online Status: Offline
Posts: 1587
Quote kevlray Replybullet Posted: 07 Jan 2010 at 8:54am
Is it just needed to display an extra zero?  I see that the value displayed is a string.  It kinda depends what you are trying to achieve.  If the last digit is always going to be a zero, then you can add that to the end of the string. 

If the data field is not large enough on the data source, then that would have to be done at the data source.

Otherwise maybe it could be converted back into a number and the number of digits to right of the decimal could be set.
IP IP Logged
Mayoflash
Newbie
Newbie
Avatar

Joined: 06 Jan 2010
Location: Ireland
Online Status: Offline
Posts: 4
Quote Mayoflash Replybullet Posted: 07 Jan 2010 at 9:14am
Hello Kevlray,
 
The data source is as follows:
 
                 kg Tolerance Range
                -0.003 TO +0.003
 
However, the Crystal Report is as follows:
                
                 kg Tolerance Range
                 -0.00 TO +0.00
 
The decimal place is missing. How do I resolve?
 
Regards
Crystal Novice
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.031 seconds.