gtool5 Fortran 90/95 Library 1.0.0-rc5
日本語
Loading...
Searching...
No Matches
Public Member Functions | List of all members
dc_scaledsec::floor Interface Reference

Public Member Functions

type(dc_scaled_sec) function dcscaledsec_floor_s (sclsec)
 

Detailed Description

Definition at line 250 of file dc_scaledsec.f90.

Member Function/Subroutine Documentation

◆ dcscaledsec_floor_s()

type(dc_scaled_sec) function dc_scaledsec::floor::dcscaledsec_floor_s ( type(dc_scaled_sec), intent(in)  sclsec)

Return floor of DC_SCALED_SEC (maximum integer not greater than value)

Parameters
[in]sclsecDC_SCALED_SEC variable
Returns
Maximum integer not greater than sclsec

Definition at line 2571 of file dc_scaledsec.f90.

2572 implicit none
2573 type(DC_SCALED_SEC), intent(in):: sclsec
2574 integer:: i
2575 logical:: flag_after_decimal
2576 continue
2577 result = sclsec
2578 flag_after_decimal = .false.
2579 do i = -1, imin, -1
2580 if ( result % sec_ary(i) /= 0 ) flag_after_decimal = .true.
2581 result % sec_ary(i) = 0
2582 end do
2583 if ( flag_after_decimal .and. result % flag_negative ) then
2584 result = result - 1
2585 end if
2586

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