Skip to content

Prints pi to n places, taking a command line argument for n

License

Notifications You must be signed in to change notification settings

jaklocko/Pi-To-Nth

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Pi To Nth

This program returns the mathematical constant pi to a designated number of decimal places
It performs type checking on the arguments to ensure the value supplied is an integer
It ignores all non-integer arguments and returns a result for each valid integer argument

Arguments

This program accepts an arbitrary number of arguments. Invalid (non-integer) arguments throw an error indicating the argument is not castable as an integer, then continues execution on the remaining valid arguments

n -- an integer value representing the number of decimal places to which to resolve pi

About

Prints pi to n places, taking a command line argument for n

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages