- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Large values data types: HP C/HP-UX 9000
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-25-2002 06:02 AM
тАО02-25-2002 06:02 AM
When I compile I get the message:
warning 602: Integer constant exceeds its storage.
I used double, long double,... Still get the message
How can I solve this?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-25-2002 06:10 AM
тАО02-25-2002 06:10 AM
Re: Large values data types: HP C/HP-UX 9000
I suspect that the compiler is unhappy about the long long assignment statement.
Change to this type:
unsigned long long x = 12345678901LL;
Steve Steel
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-25-2002 06:11 AM
тАО02-25-2002 06:11 AM
Re: Large values data types: HP C/HP-UX 9000
what does your assignment look like, because "2.147.483647" isn't much of an integer.
live free or die
harry
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-25-2002 06:19 AM
тАО02-25-2002 06:19 AM
Re: Large values data types: HP C/HP-UX 9000
live free or die
harry
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-25-2002 06:40 AM
тАО02-25-2002 06:40 AM
Re: Large values data types: HP C/HP-UX 9000
#include
main()
{
double x = 9999999999;
printf("%0.f\n",x);
}
Using +DD64 gives:
Can't find library for -lc
Probably need to specify a path.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-25-2002 06:47 AM
тАО02-25-2002 06:47 AM
Solution#include
main()
{
double howdy = 9147483649.0;
printf("%0.lf\n",howdy);
exit(0);
}
/usr/ccs/bin/ld: (Warning) At least one PA 2.0 object file (test.o) was detected. The linked output may not run on a PA 1.x system.
# ./a.out
9147483649
#
live free or die
harry
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-25-2002 06:55 AM
тАО02-25-2002 06:55 AM
Re: Large values data types: HP C/HP-UX 9000
Tnx Harry.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-25-2002 07:12 AM
тАО02-25-2002 07:12 AM
Re: Large values data types: HP C/HP-UX 9000
The "lf" is not needed in the printf, just "f" will do. The issue was the assignment, by adding the decimal portion, it forced it to convert it via the type.
live free or die
harry