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-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

Register now!

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.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

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