Loading...
Searching...
No Matches
dc_scaledsec::floor Interface Reference

Public Member Functions

type(dc_scaled_sec) function dcscaledsec_floor_s (sclsec)

Detailed Description

Definition at line 187 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)

Definition at line 1990 of file dc_scaledsec.f90.

1991 !
1992 ! DC_SCALED_SEC 型変数の整数値 (対象の数値以下で最大の整数) を返す.
1993 !
1994 ! Return an integer value (maximum integer under the given value)
1995 ! of a "DC_SCALED_SEC" variable
1996 !
1997 implicit none
1998 type(DC_SCALED_SEC), intent(in):: sclsec
1999 integer:: i
2000 logical:: flag_after_decimal
2001 continue
2002 result = sclsec
2003 flag_after_decimal = .false.
2004 do i = -1, imin, -1
2005 if ( result % sec_ary(i) /= 0 ) flag_after_decimal = .true.
2006 result % sec_ary(i) = 0
2007 end do
2008 if ( flag_after_decimal .and. result % flag_negative ) then
2009 result = result - 1
2010 end if
2011

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