c_giza_round Interface

interface
public function c_giza_round(x, nsub) result(r) bind(C, name='giza_round'))

Arguments

Type IntentOptional Attributes Name
real(kind=c_double), value :: x

Value to round.

integer(kind=c_int), intent(out) :: nsub

Minor tick intervals per step: 2 for a step of 2, else 5.

Return Value real(kind=c_double)

Description

Round x to a nice tick step.

Smallest of 2, 5 or 10 times a power of ten not below |x|, w/ sign of x. Binds giza's C giza_round directly.