SensESP
2.7.2
Universal Signal K sensor toolkit ESP32
Loading...
Searching...
No Matches
typecast.cpp
Go to the documentation of this file.
1
#include "
typecast.h
"
2
3
#include <math.h>
4
5
namespace
sensesp
{
6
7
RoundToInt::RoundToInt
()
8
:
Typecast
<
float
,
int
>([](
float
in
) ->
int
{
return
(
int
)
round
(
in
); }) {}
9
10
}
// namespace sensesp
sensesp::LambdaTransform
Construct a new transform based on a single function.
Definition
lambda_transform.h:71
sensesp::RoundToInt::RoundToInt
RoundToInt()
Definition
typecast.cpp:7
sensesp::Typecast
Converts input from one data type to another, then outputs the new type.
Definition
typecast.h:34
sensesp
Definition
sensesp.h:22
typecast.h
src
sensesp
transforms
typecast.cpp
Generated by
1.9.8