Minsky: 3.17.0
engNotation.h
Go to the documentation of this file.
1
/*
2
@copyright Steve Keen 2021
3
@author Russell Standish
4
This file is part of Minsky.
5
6
Minsky is free software: you can redistribute it and/or modify it
7
under the terms of the GNU General Public License as published by
8
the Free Software Foundation, either version 3 of the License, or
9
(at your option) any later version.
10
11
Minsky is distributed in the hope that it will be useful,
12
but WITHOUT ANY WARRANTY; without even the implied warranty of
13
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14
GNU General Public License for more details.
15
16
You should have received a copy of the GNU General Public License
17
along with Minsky. If not, see <http://www.gnu.org/licenses/>.
18
*/
19
#ifndef ENG_NOTATION
20
#define ENG_NOTATION
21
22
#include <string>
23
namespace
minsky
24
{
25
struct
EngNotation
{
int
sciExp
,
engExp
;};
27
EngNotation
engExp
(
double
value);
28
std::string
mantissa
(
double
value,
const
EngNotation
&,
int
digits=3);
29
std::string
expMultiplier
(
int
exp
);
30
}
31
32
#include "engNotation.xcd"
33
#endif
minsky::expMultiplier
std::string expMultiplier(int exp)
Definition:
variableValue.cc:413
minsky::engExp
EngNotation engExp(double value)
return formatted mantissa and exponent in engineering format
Definition:
variableValue.cc:383
minsky
Definition:
constMap.h:22
minsky::EngNotation
Definition:
engNotation.h:25
MathDAG::exp
Expr exp(const Expr &x)
Definition:
expr.h:125
minsky::mantissa
std::string mantissa(double value, const EngNotation &, int digits=3)
Definition:
variableValue.cc:394
minsky::EngNotation::engExp
int engExp
Definition:
engNotation.h:25
minsky::EngNotation::sciExp
int sciExp
Definition:
engNotation.h:25
engine
engNotation.h
Generated on Wed Jun 18 2025 16:22:22 for Minsky: 3.17.0 by
1.8.14