CARVIEW |
Select Language
HTTP/2 200
server: nginx
date: Wed, 30 Jul 2025 21:42:41 GMT
content-type: text/html;charset=UTF-8
x-archive-orig-date: Wed, 01 Sep 2010 01:20:53 GMT
x-archive-orig-server: Apache/2.2.11 (Unix) mod_ssl/2.2.11 OpenSSL/0.9.8e-fips-rhel5 mod_auth_passthrough/2.1 mod_bwlimited/1.4 FrontPage/5.0.2.2635 PHP/5.2.8
x-archive-orig-x-powered-by: PHP/5.2.8
x-archive-orig-set-cookie: answers_session_id=deleted; expires=Tue, 01-Sep-2009 01:20:52 GMT; path=/; domain=.oreilly.com; httponly
x-archive-orig-set-cookie: answers_session_id=deleted; expires=Tue, 01-Sep-2009 01:20:52 GMT; path=/; domain=.oreilly.com; httponly
x-archive-orig-cache-control: ,no-cachemust-revalidate, max-age=0
x-archive-orig-expires: 0
x-archive-orig-pragma: no-cache
x-archive-orig-connection: close
x-archive-guessed-content-type: text/html
x-archive-guessed-charset: utf-8
memento-datetime: Wed, 01 Sep 2010 01:20:48 GMT
link: ; rel="original", ; rel="timemap"; type="application/link-format", ; rel="timegate", ; rel="first memento"; datetime="Wed, 01 Sep 2010 01:20:48 GMT", ; rel="memento"; datetime="Wed, 01 Sep 2010 01:20:48 GMT", ; rel="next memento"; datetime="Wed, 24 Nov 2010 09:07:17 GMT", ; rel="last memento"; datetime="Tue, 13 Sep 2011 11:02:44 GMT"
content-security-policy: default-src 'self' 'unsafe-eval' 'unsafe-inline' data: blob: archive.org web.archive.org web-static.archive.org wayback-api.archive.org athena.archive.org analytics.archive.org pragma.archivelab.org wwwb-events.archive.org
x-archive-src: 52_17_20100901000244_crawl101-c/52_17_20100901011949_crawl100.arc.gz
server-timing: captures_list;dur=1.166420, exclusion.robots;dur=0.039466, exclusion.robots.policy;dur=0.018302, esindex;dur=0.019629, cdx.remote;dur=15.733667, LoadShardBlock;dur=57.659645, PetaboxLoader3.datanode;dur=196.164271, load_resource;dur=332.530992, PetaboxLoader3.resolve;dur=179.476397
x-app-server: wwwb-app216
x-ts: 200
x-tr: 481
server-timing: TR;dur=0,Tw;dur=0,Tc;dur=0
set-cookie: SERVER=wwwb-app216; path=/
x-location: All
x-rl: 0
x-na: 0
x-page-cache: MISS
server-timing: MISS
x-nid: DigitalOcean
referrer-policy: no-referrer-when-downgrade
permissions-policy: interest-cohort=()
content-encoding: gzip
sprintf Questions and Answers - O'Reilly Answers
Welcome
O'Reilly Answers is a community site for sharing knowledge, asking questions, and providing answers that brings together our customers, authors, editors, conference speakers, and Foo (Friends of O'Reilly). More »
Earn Rewards, Reputation, and Badges
Redeem the reputation points you've earned from participating in O'Reilly Answers for O'Reilly ebooks, videos, courses, and conferences.
Learn more »
Recommended for You
Topics: sprintf
sprintf Feed
sprintf Open Questions Feed
sprintf Email
Open Questions via Email

Please sign in or register to post.

Please sign in or register to post.
-
How to Round Floating-Point Numbers in Perl
By gnat: 20 October 2009 - 03:40 PM
If you want to round a floating-point value to a certain number of decimal places, use the Perl function sprintf, or printf if you're just trying to produce output: # round off to ...
Pages:
- 1
![]() ©2010, O'Reilly Media, Inc. (707) 827-7000 / (800) 998-9938 All trademarks and registered trademarks appearing on oreilly.com are the property of their respective owners. |
About O'Reilly Academic Solutions Authors Contacts Customer Service Jobs Newsletters O'Reilly Labs Press Room Privacy Policy RSS Feeds Terms of Service User Groups Writing for O'Reilly |
Content Archive Business Technology Computer Technology Microsoft Mobile Network Operating System Digital Photography Programming Software Web Web Design |
More O'Reilly Sites O'Reilly Radar Ignite Tools of Change for Publishing Digital Media Inside iPhone makezine.com craftzine.com hackszine.com perl.com xml.com Partner Sites InsideRIA java.net O'Reilly Insights on Forbes.com |