gtool5 Fortran 90/95 Library 1.0.0-rc5
日本語
Loading...
Searching...
No Matches
dc_scaledsec::ceiling Interface Reference

Public Member Functions

type(dc_scaled_sec) function dcscaledsec_ceiling_s (sclsec)

Detailed Description

Definition at line 254 of file dc_scaledsec.f90.

Member Function/Subroutine Documentation

◆ dcscaledsec_ceiling_s()

type(dc_scaled_sec) function dc_scaledsec::ceiling::dcscaledsec_ceiling_s ( type(dc_scaled_sec), intent(in) sclsec)

Return ceiling of DC_SCALED_SEC (minimum integer not less than value)

Parameters
[in]sclsecDC_SCALED_SEC variable
Returns
Minimum integer not less than sclsec

Definition at line 2602 of file dc_scaledsec.f90.

2603 implicit none
2604 type(DC_SCALED_SEC), intent(in):: sclsec
2605 integer:: i
2606 logical:: flag_after_decimal
2607 continue
2608 result = sclsec
2609 flag_after_decimal = .false.
2610 do i = -1, imin, -1
2611 if ( result % sec_ary(i) /= 0 ) flag_after_decimal = .true.
2612 result % sec_ary(i) = 0
2613 end do
2614 if ( flag_after_decimal .and. .not. result % flag_negative ) then
2615 result = result + 1
2616 end if
2617

The documentation for this interface was generated from the following file: