Scaled seconds module for precise time operations. More...
Data Types | |
| type | dc_scaled_sec |
| interface | assignment(=) |
| interface | operator(==) |
| interface | operator(>) |
| interface | operator(<) |
| interface | operator(>=) |
| interface | operator(<=) |
| interface | operator(+) |
| interface | operator(-) |
| interface | operator(*) |
| interface | operator(/) |
| interface | mod |
| interface | modulo |
| interface | abs |
| interface | int |
| interface | sign |
| interface | floor |
| interface | ceiling |
Functions/Subroutines | |
| subroutine, public | dcscaledsecputline (sclsec, unit, indent) |
Scaled seconds module for precise time operations.
A module for correct operations of "seconds" after the decimal point, and large number more than integer type.
This module provides the derived type DC_SCALED_SEC and operators for precise operations of time values that cannot be represented accurately by standard integer or real types.
| Operator/Procedure | Description |
|---|---|
| assignment(=) | Assignment |
| operator(+) | Addition |
| operator(-) | Subtraction |
| operator(*) | Multiplication |
| operator(/) | Division |
| mod | Remainder |
| modulo | Modulo |
| operator(==) | Equal comparison |
| operator(>) | Greater than comparison |
| operator(<) | Less than comparison |
| operator(>=) | Greater than or equal comparison |
| operator(<=) | Less than or equal comparison |
| abs | Absolute value |
| int | Integer value (truncate fractional parts) |
| sign | Set sign |
| floor | Maximum integer not greater than given value |
| ceiling | Minimum integer not less than given value |
| subroutine, public dc_scaledsec::dcscaledsecputline | ( | type(dc_scaled_sec), intent(in) | sclsec, |
| integer, intent(in), optional | unit, | ||
| character(*), intent(in), optional | indent ) |
Print information of DC_SCALED_SEC
Print information of sclsec. By default messages are output to standard output. Unit number for output can be changed by unit argument.
| [in] | sclsec | DC_SCALED_SEC variable to print |
| [in] | unit | Unit number for output. Default is standard output. |
| [in] | indent | Indent string for displayed messages |
Definition at line 428 of file dc_scaledsec.f90.
References dc_trace::beginsub(), dc_trace::endsub(), dc_types::stdout, and dc_types::string.