11.07.2015 Views

Caché ObjectScript Reference - InterSystems Documentation

Caché ObjectScript Reference - InterSystems Documentation

Caché ObjectScript Reference - InterSystems Documentation

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Math and Time FunctionsNote:$ZTAN (like all trigonometric functions) calculates its values based on pi roundedto the number of available decimal digits. Therefore, the value returned by$ZTAN($ZPI) is –.000000000000000000462644 and $ZTAN(–$ZPI) is.000000000000000000462644. For this reason you should not perform limit testscomparing these returned values to 0. $ZTAN(0) is 0.ParametersnAn angle in radians ranging from 0 to 2 Pi. It can be specified as a value, a variable, or anexpression.ExampleThe following example permits you to compute the tangent of a number:READ "Input a number: ",numWRITE !,"the tangent is: ",$ZTAN(num)QUITSee Also• $ZARCTAN function• $ZSIN function• $ZPI special variable376 <strong>Caché</strong> <strong>ObjectScript</strong> <strong>Reference</strong>

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!