क्या मानक नामकरण सम्मेलन और गणित पुस्तकालय आप उपयोग करते हैं? मैं वर्तमान मेंstdfloat.h का संस्करण stdint.h
#include <stdint.h>
typedef float float32_t;
typedef double float64_t;
/*! ISO C99: 7.18 Integer types 8, 16, 32, or 64 bits
intN_t = two’s complement signed integer type with width N, no padding bits.
uintN_t = an unsigned integer type with width N.
floatN_t = N bit IEE 754 float.
uintN_t intN_t floatN_t
bits unsigned-integer signed-integer IEE754 float
8
16 unsigned short short ??"half"
32 unsigned int float
64 unsigned long long double
128 ?? "Long double" "quad" ??*/
लेकिन जैसा कि आप देख सकते हैं कि मुझे अभी तक गणित पुस्तकालय पर निर्णय लेने का अधिकार नहीं है।
मूल प्रश्न: सीधे आगे नामकरण सम्मेलन के साथ एक छोटी गणित पुस्तकालय के लिए सिफारिश।
क्या किसी को सीधे नामकरण सम्मेलनों के साथ किसी भी छोटी सी पुस्तकालयों के बारे में पता है? यह अभी मैं उपयोग कर रहा हूं:
typedef unsigned short UInt16; typedef short Int16;
typedef unsigned UInt32; typedef int Int32; typedef float Float32;
typedef unsigned long UInt64; typedef long int Int64; typedef double Float64;
आप क्या उपयोग करते हैं ??
आपके प्लेटफ़ॉर्म पर ' 'अनुपलब्ध है? –
Christoph
मैं 'लागू डबल प्रेसीशन (ए-एच, ओ-जेड) 'का उपयोग करता हूं। :-) यह एक मजाक है, मुझे जलाओ नहीं। – Anycorn
@ क्रिस्टोफ ओके, हाँ, लेकिन अब मैं फ्लोट्स के बारे में क्या करूँ ?? – GlassGhost