PropWare
C++ objects and CMake build system for Parallax Propeller
Home
Download
Getting Started
Documentation
Reference
About
Related Links
Namespace List
Class List
File List
Examples
Build System
File List
File Members
propsideworkspace
Learn
Simple Libraries
TextDevices
libsimpletext
putFloat.c
1
/*
2
* @file putFloat.c
3
* Function to print a float number to the default terminal.
4
*
5
* Copyright (c) 2013, Parallax Inc.
6
* Written by Steve Denson
7
*/
8
#include "simpletext.h"
9
10
void
putFloat(
float
number)
11
{
12
extern
text_t
*dport_ptr;
13
writeFloatPrecision(dport_ptr, number, 4, 10);
14
}
15
16
/*
17
+--------------------------------------------------------------------
18
| TERMS OF USE: MIT License
19
+--------------------------------------------------------------------
20
Permission is hereby granted, free of charge, to any person obtaining
21
a copy of this software and associated documentation files
22
(the "Software"), to deal in the Software without restriction,
23
including without limitation the rights to use, copy, modify, merge,
24
publish, distribute, sublicense, and/or sell copies of the Software,
25
and to permit persons to whom the Software is furnished to do so,
26
subject to the following conditions:
27
28
The above copyright notice and this permission notice shall be
29
included in all copies or substantial portions of the Software.
30
31
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
32
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
33
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
34
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
35
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
36
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
37
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
38
+--------------------------------------------------------------------
39
*/
40
text_struct
Structure that contains data used by simple text device libraries.
Definition:
simpletext.h:70
Generated on Sat Aug 27 2016 00:58:09 for PropWare by
1.8.12