BookmarkSubscribeRSS Feed
sas_
Fluorite | Level 6
Hi
Query:1

i am having two variables i want to muliply them but the output is coming in Exponentials and i have used format 32.
How can i resolve this
a=7757867676768978 b=5756567567565
c=a*b;

Query:2
How can i read this 7867896876876786786786876786786786 were there are 40-50 numbers in a vaiable.
2 REPLIES 2
sbb
Lapis Lazuli | Level 10 sbb
Lapis Lazuli | Level 10
Q1: You can associate a desired SAS output FORMAT for your large variable.

Q2: There are architecture limits with the SAS system.

Scott Barry
SBBWorks, Inc.

Suggested Google advanced search arguments, this topic / post:

numeric precision site:sas.com

input numeric data site:sas.com
ArtC
Rhodochrosite | Level 12
Are these actual numbers or are they strings that carry a series of digits. If vary large numbers need to be generated, what level of accuracy is truly needed?

Q2: a large number of digits can be accomodated in a Character string, however numeric calculations become problematic. There are large number calculators available that use techniques that you could program into a DATA step, but the result would probably still not fit a numeric value.

SAS Innovate 2025: Save the Date

 SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!

Save the date!

What is Bayesian Analysis?

Learn the difference between classical and Bayesian statistical approaches and see a few PROC examples to perform Bayesian analysis in this video.

Find more tutorials on the SAS Users YouTube channel.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 2 replies
  • 774 views
  • 0 likes
  • 3 in conversation