Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Multiplying large numbers

Status
Not open for further replies.

gj0519

MIS
May 8, 2003
69
US
I have 2 formulas that I am multiplying, 1st formula is 6 digits, and 2nd formula is 14 digits. My result shows up as 9.61e+019. I need the result to be the whole number.
Any ideas.

Thanks,

Glenn
 
Hi Glenn,

As a long time member (if not necessarily contributor) in the forum, I can tell you that the members will be able to help a lot more if you provide more information. Where are you placing the formula? What version of Crystal Reports are you using? What database system are you using?

The more information you can provide about your problem the greater the odds of having one of the members provide you with valuable information.

Thanks.
 
Using version 9.0 pro
pulling from DB2
All together I have 4 formulas.
1st formula gives me the ordinal date:
Code:
ToText(year(today),0,"") & ToText(datediff("d",date(year(today),1,1),today),0,"")
2nd is just a value:
Code:
NumberVar Key:= 5;
Totext(key,0,"")
3rd is my 14 digit number:
Code:
Left({@Diff#},14)
Final to give me my answer: I don't get the whole number when I mulitply Digits.
Code:
NumberVar Ord:= ToNumber({@OrdDate});
NumberVar Key:= ToNumber({@KeyValue});
NumberVar Digits:= ToNumber({@14Digits});

((Ord - Key) * Digits)

Hope that explains it better.
Thanks,
Glenn
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top