nextHighestIntegerEvenlyDivisible

Return to directory of Todd's CASA extensions

For a specified integer, checks whether it is evenly divisible by a second integer, and if not, returns the next higher second integer that is. Used by bandpassPreAverage.

Usage:

au.nextHighestIntegerEvenlyDivisible(n, d)

Example:

CASA <3>: au.nextHighestIntegerDivisible(3840,17)
  Out[3]: 20

-- ToddHunter - 2015-03-05
Topic revision: r1 - 2015-03-05, ToddHunter
This site is powered by FoswikiCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding NRAO Public Wiki? Send feedback