~ubuntu-branches/ubuntu/intrepid/horae/intrepid

« back to all changes in this revision

Viewing changes to 0CPAN/Math-Round-0.05/README

  • Committer: Bazaar Package Importer
  • Author(s): Carlo Segre
  • Date: 2008-02-23 23:13:02 UTC
  • mfrom: (2.1.2 hardy)
  • Revision ID: james.westby@ubuntu.com-20080223231302-mnyyxs3icvrus4ke
Tags: 066-3
Apply patch to athena_parts/misc.pl for compatibility with 
perl-tk 804.28.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
Math::Round -- Perl extension for rounding numbers
2
 
 
3
 
Math::Round is a Perl module.  It supplies functions to round numbers,
4
 
both positive and negative, in various ways.  This may seem like an
5
 
odd thing to write a whole module for, but rounding can sometimes be
6
 
a little tricky, so I thought some people might find this useful.
7
 
 
8
 
round: round to the nearest integer; numbers ending in .5 go
9
 
   "to infinity" (3.5 becomes 4, -3.5 becomes -4)
10
 
round_even: round; numbers ending in .5 go to the even number
11
 
round_odd: round; numbers ending in .5 go to the odd number
12
 
round_rand: round; numbers ending in .5 go up or down randomly
13
 
 
14
 
nearest: round to the nearest multiple of any number
15
 
nearest_ceil: like nearest; numbers halfway between two multiples
16
 
   go up
17
 
nearest_floor: like nearest; numbers halfway between two multiples
18
 
   go down
19
 
nearest_rand: like nearest; numbers halfway between two multiples
20
 
   go up or down randomly
21
 
 
22
 
nlowmult: next lower multiple of a number
23
 
nhimult: next higher multiple of a number
24
 
 
25
 
Recent Changes
26
 
==============
27
 
Version 0.04: Added nearest_ceil and nearest_floor.
28
 
Version 0.05: Added nlowmult and nhimult.
29
 
 
30
 
How to Install
31
 
==============
32
 
 
33
 
    perl Makefile.PL
34
 
    make
35
 
    make test
36
 
    make install
37
 
 
38
 
 
39
 
Copyright � 2002 Geoffrey Rommel.  All rights reserved.
40
 
This program is free software; you can redistribute it and/or modify
41
 
it under the same terms as Perl itself.
42
 
 
43
 
Geoffrey Rommel
44
 
DBA Tech Consultant
45
 
Sears, Roebuck and Co.
46
 
GROMMEL@cpan.org
47
 
 
48
 
October 2000