quick start:g++ [flags ...] file ... -l /isip/tools/lib/$ISIP_BINARY/lib_math_scalar.a #include <Float.h> Float(float arg = DEF_VALUE); Float(const Float& arg);
description:Float val0; val0 = 10.0; Float val1(5.0); Float val2; val2 = val0.exp10(2.0) + val1.pow(3.0);
static const String CLASS_NAME = L"Float";
static const long ERR = 21000;
static MemoryManager mgr_d;
static const String& name();
static boolean diagnose(Integral::DEBUG debug_level);
setDebug is inherited from the MScalar template class
boolean debug(const unichar* message) const;
~Float();
Float(float arg = DEF_VALUE);
Float(const Float& arg);
assign methods are inherited from the MScalar template class
Float& operator= (const Float& arg);
the sofSize method is inherited from the MScalar template class
boolean read(Sof& sof, long tag, const String& name = CLASS_NAME);
boolean write(Sof& sof, long tag, const String& name = CLASS_NAME) const;
readData and writeData are inherited from the MScalar template class
equality methods are inherited from the MScalar template class
static void* operator new(size_t size);
static void* operator new[](size_t size);
static void operator delete(void* ptr);
static void operator delete[](void* ptr);
static boolean setGrowSize(long grow_size);
clear is inherited from the MScalar template class
Float& operator= (float arg);
float bor(float, float);
float band(float, float);
float bxor(float, float);
float brs(float, float);
float bls(float, float);
float bcmpl(float);
float mod(float, float);
float& operator%= (float);
float& operator% (float);
Float val0(5.0); String tmp_filename(L"foo"); Sof tmp_file; tmp_file.open(tmp_filename, File::WRITE_ONLY, File::TEXT); val0.write(tmp_file, (long)0); tmp_file.close();
Float rand_num; float value; float value1; // using default seed // value = rand_num.randSeed(); // Gaussian random number generation // float mean = 5.0; float std_dev = 3.0; value1 = rand_num.grand(mean, std_dev);