Sha256: 5925e400ba28c1121ab31b06dd1fec874726e4bfbe24f711788c8ac086ae6b20

Contents?: true

Size: 839 Bytes

Versions: 2

Compression:

Stored size: 839 Bytes

Contents

//
//  dblRelated.h
//  OSTN02
//
//  Created by George MacKerron on 20/02/2012.
//  Copyright (c) 2012 George MacKerron. All rights reserved.
//

#ifndef OSTN02_dblRelated_h
#define OSTN02_dblRelated_h

#ifdef USE_LONG
#define L(x)      x ## L
#define DBLFMT    "Lf"
#define SIN       sinl
#define COS       cosl
#define TAN       tanl
#define SQRT      sqrtl
#define ABS       fabs
#define NUMDESC   "long double"
#else
#define L(x)      x
#define DBLFMT    "lf"
#define SIN       sin
#define COS       cos
#define TAN       tan
#define SQRT      sqrt
#define ABS       fabsl
#define NUMDESC   "double"
#endif

#define CDBL      const DBL
#define LLFMT     "lat: % 11.6" DBLFMT ", lon: % 11.6" DBLFMT ", elevation: %8.3" DBLFMT
#define ENFMT     "  E: %11.3" DBLFMT ",   N: %11.3" DBLFMT ", elevation:  %7.3" DBLFMT " (%s / %s)"

#endif

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
national_grid-0.2.0 ext/ostn02c/OSTN02/dblRelated.h
national_grid-0.1.2 ext/ostn02c/OSTN02/dblRelated.h