gtool5 Fortran 90/95 ライブラリ 1.0.0-rc5
English
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 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)

DC_SCALED_SEC の床関数を返す (対象の数値以下で最大の整数)

Parameters
[in]sclsecDC_SCALED_SEC 型変数
Returns
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: