versadac
1
versadac - Scalable Recorder Firmware
Main Page
Classes
Files
File List
File Members
core
archiver
am_double.h
1
/*****************************************************************************
2
FILE : am_double.h
3
VERSION : $Id: am_double.h 4938 2006-10-10 14:20:18Z martinto $
4
AUTHOR : Sandra Herring
5
SYSTEM : GNU C++ for Power PC
6
DESCRIPTION : Utilities for handling doubles in spreadsheet generation
7
*****************************************************************************/
8
9
#if !defined(__AM_DOUBLE_H)
10
#define __AM_DOUBLE_H
11
12
#include "stdtypes.h"
13
14
// length of array required to hold longest possible value string
15
static
const
int
MAX_VALUE_LENGTH = 16;
16
17
class
AM_TimeFormatter
;
18
19
20
/*---------------------------------------------------------------------------
21
FUNCTION : AM_DoubleToAscii
22
DESCRIPTION : Convert a float64 to a string
23
ARGUMENTS : value value to convert
24
buffer - pointer to a buffer to receive the string.
25
decimalDigits - max number of digits in converted number.
26
fractionalDigits - number of decimal places shown.
27
displayFormat - how to present the value ( may be scientific
28
date, time, etc )
29
decimalChars - optional string to be used instead of decimal point
30
31
RETURN : Number of characters in buffer.
32
NOTES : Always has trailing zeros.
33
---------------------------------------------------------------------------*/
34
extern
sint16 AM_DoubleToAscii(
double
value,
35
char
* buffer,
36
uint8 decimalDigits,
37
uint8 fractionalDigits,
38
uint8 displayFormat,
39
uint8 timeFormat,
40
AM_TimeFormatter
& timeFormatter,
41
const
char
* decimalChars,
42
bool
forSpreadsheet );
43
#endif
44
AM_TimeFormatter
Definition:
am_timeformatter.h:21
Generated on Wed Aug 19 2020 10:33:37 for versadac by
1.8.9.1