Converted roundNum to use options object for optional arguments.