Loading [MathJax]/extensions/tex2jax.js
MRFFL: MR Fortran Finance Library 2024-12-28
Computational Tools For Finance
All Namespaces Files Functions Variables
mrffl_prt_sets.f90
Go to the documentation of this file.
1! -*- Mode:F90; Coding:us-ascii-unix; fill-column:129 -*-
2!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!.H.S.!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!.H.E.!!
3!>
4!! @file mrffl_prt_sets.f90
5!! @author Mitch Richling http://www.mitchr.me/
6!! @date 2025-01-02
7!! @brief Constants to select what *_print subroutines will print.@EOL
8!! @keywords finance fortran monte carlo inflation cashflow time value of money tvm percentages taxes stock market
9!! @std F2023
10!! @see https://github.com/richmit/FortranFinance
11!! @copyright
12!! @parblock
13!! Copyright (c) 2025, Mitchell Jay Richling <http://www.mitchr.me/> All rights reserved.
14!!
15!! Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following
16!! conditions are met:
17!!
18!! 1. Redistributions of source code must retain the above copyright notice, this list of conditions, and the following
19!! disclaimer.
20!!
21!! 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions, and the following
22!! disclaimer in the documentation and/or other materials provided with the distribution.
23!!
24!! 3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products
25!! derived from this software without specific prior written permission.
26!!
27!! THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES,
28!! INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
29!! DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
30!! EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
31!! USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
32!! LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
33!! OF THE POSSIBILITY OF SUCH DAMAGE.
34!! @endparblock
35!!
36
37!----------------------------------------------------------------------------------------------------------------------------------
38!> Constants to select what *_print subroutines will print.
40 use mrffl_config, only: ik=>mrfflik
41 implicit none
42 private
43
44 integer(kind=ik), parameter, public :: prt_none = 0 !< Print nothing
45 integer(kind=ik), parameter, public :: prt_param = 1 !< Print parameters before the table/titles
46 integer(kind=ik), parameter, public :: prt_title = 2 !< Print titles on the tables
47 integer(kind=ik), parameter, public :: prt_table = 4 !< Print a table
48 integer(kind=ik), parameter, public :: prt_total = 8 !< Print totals PV & FV after the table
49 integer(kind=ik), parameter, public :: prt_space = 16 !< Print vertical whitespace between parameters & table/titles & totals
50 integer(kind=ik), parameter, public :: prt_all = 31 !< Print everything
51
52end module mrffl_prt_sets
Configuration for MRFFL (MR Fortran Finance Library).
integer, parameter, public mrfflik
Integer kinds used in interfaces.
Constants to select what *_print subroutines will print.
integer(kind=ik), parameter, public prt_table
Print a table.
integer(kind=ik), parameter, public prt_all
Print everything.
integer(kind=ik), parameter, public prt_param
Print parameters before the table/titles.
integer(kind=ik), parameter, public prt_total
Print totals PV & FV after the table.
integer(kind=ik), parameter, public prt_title
Print titles on the tables.
integer(kind=ik), parameter, public prt_space
Print vertical whitespace between parameters & table/titles & totals.
integer(kind=ik), parameter, public prt_none
Print nothing.