版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請進行舉報或認(rèn)領(lǐng)
文檔簡介
MathLibraryUser’sReleaser NumberReleasedDate:2004-11- ReleasedVersionRevisionTableof 浮點數(shù)運算函數(shù) 浮點數(shù)轉(zhuǎn)換函數(shù) 浮點數(shù)比較函數(shù) BASE運算函數(shù) BASE轉(zhuǎn)換函數(shù) FUNCTION PROJECT C 浮點數(shù)轉(zhuǎn)換函數(shù) 浮點數(shù)比較函 BASE運算函數(shù) BASE數(shù)據(jù)轉(zhuǎn)換函數(shù) MathAPI16AP浮點數(shù)運算函數(shù)lus(現(xiàn)6,24位精度funtionlit浮點數(shù)轉(zhuǎn)換函數(shù)SunplusASCII浮點數(shù)轉(zhuǎn)化為字符串,用于結(jié)果顯示。首先將Sunplus格式浮點數(shù)轉(zhuǎn)化為BCD碼,然后再將C_BcdCodeLenth默認(rèn)為“0AP根據(jù)自己的規(guī)格進行判斷處理。浮點數(shù)比較函數(shù)SunplusBase運算函數(shù)BaseOPBase轉(zhuǎn)換函數(shù)BaseASCIIBaseBase的結(jié)果顯示。包括二進制、八進制、十進制、十六進制四AP根據(jù)自己的規(guī)格進行判斷處理BaseBaseFunctionPErr,Result數(shù),在指定的Result中。是浮點數(shù),在指定的Result中是浮點數(shù),在指定的Result中是浮點數(shù),在指定的Result中是浮點數(shù),在指定的Result中PErr,Result數(shù),在指定的Result中。PErr,Result數(shù),在指定的Result中。PErr,Result數(shù),在指定的Result中。PErr,Result數(shù),在指定的Result中。3PErr,Result數(shù),在指定的Result中。10PErr,Result數(shù),在指定的Result中。PErr,Result數(shù),在指定的Result中。PErr,Result數(shù),在指定的Result中。算yx函是浮點數(shù),在指定的Result中算ex函PErr,Result數(shù),在指定的Result中。算x√是浮點數(shù),在指定的Result中PErr,Result數(shù),在指定的Result中。算Sin函PErr,Result數(shù),在指定的Result中。算Cos函PErr,Result數(shù),在指定的Result中。算Tan函PErr,Result數(shù),在指定的Result中。算ASin函PErr,Result數(shù),在指定的Result中。算ACosPErr,Result數(shù),在指定的Result中。算ATan函PErr,Result數(shù),在指定的Result中。算Sinh函PErr,Result數(shù),在指定的Result中。Cosh函PErr,Result數(shù),在指定的Result中。算Tanh函PErr,Result數(shù),在指定的Result中。算ASinhPErr,Result數(shù),在指定的Result中。算ACoshPErr,Result數(shù),在指定的Result中。算ATanhPErr,Result數(shù),在指定的Result中。PErr,Result數(shù),在指定的Result中。是浮點數(shù),在指定的Result中是浮點數(shù),在指定的Result中PErr,Result數(shù),在指定的Result中。PErr,Result數(shù),在指定的Result中。102、轉(zhuǎn)換后的浮點數(shù)結(jié)果在指OP123、Digit的個數(shù)可以進行配置。進行結(jié)4、數(shù)據(jù)的溢出和判斷需要在上23、Digit的個數(shù)可以進行配置。進行結(jié)5、數(shù)據(jù)的溢出和判斷需要在上12。34包括益處錯誤和默認(rèn)1個PErr,Result點數(shù),在指定的Result中。2wordoverflowPErr,Result點數(shù),在指定的Result中。是浮點數(shù),在指定的Result中是浮點數(shù),在指定的Result中是浮點數(shù),在指定的Result中是浮點數(shù),在指定的Result中是浮點數(shù),在指定的Result中是浮點數(shù),在指定的Result中是浮點數(shù),在指定的Result中是浮點數(shù),在指定的Result中是浮點數(shù),在指定的Result中PErr,Result點數(shù),在指定的Result中。PErr,Result點數(shù),在指定的Result中。換為Base202、轉(zhuǎn)換后的Base結(jié)果在指Result3、可以判斷出輸入數(shù)據(jù)的OverFlow錯誤。換為Base202、轉(zhuǎn)換后的Base結(jié)果在指Result3、可以判斷出輸入數(shù)據(jù)的OverFlow錯誤。換為Base202、轉(zhuǎn)換后的Base結(jié)果在指Result3、可以判斷出輸入數(shù)據(jù)的4OverFlow202、轉(zhuǎn)換后的Base結(jié)果在指Result3、可以判斷出輸入數(shù)據(jù)的OverFlow錯誤。將Base格將Base格2C_OctResultMax,設(shè)將Base格2C_OctResultMax,設(shè)將Base格2C_OctResultMax,設(shè)Parameter12指定的浮ProjectCApplcationMath浮點數(shù)運算函數(shù)HeaderCCvoidSpfAbs(unsignedchar*pErr,SPF*Result,SPFC指定浮點數(shù)運算結(jié)果的地址Return操作數(shù)數(shù)據(jù)為Sunplus浮點數(shù)格式,浮點數(shù)的格式、計算精度可配置。math函數(shù)庫的浮點數(shù)格式:6words1word5#include"Math.h"{unsignedchar unsignedchar SPFOP1,OP2,MathResult,*spfptr;s="456";StringToSpf(&g_ErrorNo,s&OP1);//Convtofloatofsunplus}HeaderCCvoidSpfAdd(unsignedchar*pErr,SPF*Result,SPF*pOP1,SPFC指定浮點數(shù)運算結(jié)果的地址12Return操作數(shù)數(shù)據(jù)為Sunplus浮點數(shù)格式,浮點數(shù)的格式、計算精度可配置。math函數(shù)庫的浮點數(shù)格式:6words1word5#include"Math.h"{unsignedchar unsignedchar SPFOP1,OP2,&MathResult,*spfptr;s="456";StringToSpf(&g_ErrorNo,s&OP1);//Convtofloatofsunpluss="1.53";StringToSpf(&g_ErrorNo,s&OP2);//ConvtofloatofsunplusSpfAdd(&g_ErrorNo,&MathResult,&OP1,&OP2);}HeaderCCvoidSpfSbb(unsignedchar*pErr,SPF*Result,SPF*pOP1,SPFC指定浮點數(shù)運算結(jié)果的地址12Return操作數(shù)數(shù)據(jù)為Sunplus浮點數(shù)格式,浮點數(shù)的格式、計算精度可配置。math函數(shù)庫的浮點數(shù)格式:6words1word5#include"Math.h"{unsignedchar unsignedchar SPFOP1,OP2,MathResult,*spfptr;s="456";StringToSpf(&g_ErrorNo,s&OP1);//Convtofloatofsunpluss="1.53";StringToSpf(&g_ErrorNo,s&OP2);//ConvtofloatofsunplusSpfSbb(&g_ErrorNo,&MathResult,&OP1,&OP2);}HeaderCCvoidSpfMul(unsignedchar*pErr,SPF*Result,SPF*pOP1,SPFC指定浮點數(shù)運算結(jié)果的地址12Return操作數(shù)數(shù)據(jù)為Sunplus浮點數(shù)格式,浮點數(shù)的格式、計算精度可配置。math函數(shù)庫的浮點數(shù)格式:6words1word5#include"Math.h"{unsignedchar unsignedchar SPFOP1,OP2,MathResult,*spfptr;s="456";StringToSpf(&g_ErrorNo,s&OP1);//Convtofloatofsunpluss="1.53";StringToSpf(&g_ErrorNo,s&OP2);//ConvtofloatofsunplusSpfMul(&g_ErrorNo,&MathResult,&OP1,&OP2);}HeaderCCvoidSpfDiv(unsignedchar*pErr,SPF*Result,SPF*pOP1,SPFC指定浮點數(shù)運算結(jié)果的地址12Return操作數(shù)數(shù)據(jù)為Sunplus浮點數(shù)格式,浮點數(shù)的格式、計算精度可配置。math函數(shù)庫的浮點數(shù)格式:6words1word5#include"Math.h"{unsignedchar unsignedchar SPFOP1,OP2,MathResult,*spfptr;s="456";StringToSpf(&g_ErrorNo,s&OP1);//Convtofloatofsunpluss="1.53";StringToSpf(&g_ErrorNo,s&OP2);//ConvtofloatofsunplusSpfDiv(&g_ErrorNo,&MathResult,&OP1,&OP2);}HeaderCCvoidSpfSign(unsignedchar*pErr,SPF*Result,SPFC指定浮點數(shù)運算結(jié)果的地址Return操作數(shù)數(shù)據(jù)為Sunplus浮點數(shù)格式,浮點數(shù)的格式、計算精度可配置。math函數(shù)庫的浮點數(shù)格式:6words1word5#include"Math.h"{unsigned unsigned SPFOP1,OP2,MathResult,*spfptr;s="456";StringToSpf(&g_ErrorNo,s&OP1);//ConvtofloatofsunplusSpfSign(&g_ErrorNo,&MathResult,&OP1);}HeaderCCvoidSpfSqrt(unsignedchar*pErr,SPF*Result,SPFC指定浮點數(shù)運算結(jié)果的地址Return操作數(shù)數(shù)據(jù)為Sunplus浮點數(shù)格式,浮點數(shù)的格式、計算精度可配置。math函數(shù)庫的浮點數(shù)格式:6words1word5#include"Math.h"{unsignedchar unsignedchar SPFOP1,OP2,MathResult,*spfptr;s="456";StringToSpf(&g_ErrorNo,s&OP1);//ConvtofloatofsunplusSpfSqrt(&g_ErrorNo,&MathResult,&OP1);}HeaderCCvoidSpfSquar(unsignedchar*pErr,SPF*Result,SPFC指定浮點數(shù)運算結(jié)果的地址Return操作數(shù)數(shù)據(jù)為Sunplus浮點數(shù)格式,浮點數(shù)的格式、計算精度可配置。math函數(shù)庫的浮點數(shù)格式:6words1word5#include"Math.h"{unsignedchar unsignedchar SPFOP1,OP2,MathResult,*spfptr;s="456";StringToSpf(&g_ErrorNo,s&OP1);//ConvtofloatofsunplusSpfSquar(&g_ErrorNo,MathResult,&OP1);}HeaderCCvoidSpfCube(unsignedchar*pErr,SPF*Result,SPFC指定浮點數(shù)運算結(jié)果的地址Return操作數(shù)數(shù)據(jù)為Sunplus浮點數(shù)格式,浮點數(shù)的格式、計算精度可配置。math函數(shù)庫的浮點數(shù)格式:6words1word5#include"Math.h"{unsignedchar unsignedchar SPFOP1,OP2,MathResult,*spfptr;s="456";StringToSpf(&g_ErrorNo,s&OP1);//ConvtofloatofsunplusSpfCube(&g_ErrorNo,&MathResult,&OP1);}HeaderCCvoidSpf3Root(unsignedchar*pErr,SPF*Result,SPFC指定浮點數(shù)運算結(jié)果的地址Return操作數(shù)數(shù)據(jù)為Sunplus浮點數(shù)格式,浮點數(shù)的格式、計算精度可配置。math函數(shù)庫的浮點數(shù)格式:6words1word5#include"Math.h"{unsignedchar unsignedchar SPFOP1,OP2,MathResult,*spfptr;s="456";StringToSpf(&g_ErrorNo,s&OP1);//ConvtofloatofSpf3Root}10為底的PowerHeaderCCvoidSpf10Power(unsignedchar*pErr,SPF*Result,SPFC指定浮點數(shù)運算結(jié)果的地址Return操作數(shù)數(shù)據(jù)為Sunplus浮點數(shù)格式,浮點數(shù)的格式、計算精度可配置。math函數(shù)庫的浮點數(shù)格式:6words1word5#include"Math.h"{unsignedchar unsignedchar SPFOP1,OP2,MathResult,*spfptr;s="3";StringToSpf(&g_ErrorNo,s&OP1);//ConvtofloatofSpf10Power}浮點數(shù)LnHeaderCCvoidSpfLn(unsignedchar*pErr,SPF*Result,SPFC指定浮點數(shù)運算結(jié)果的地址Return操作數(shù)數(shù)據(jù)為Sunplus浮點數(shù)格式,浮點數(shù)的格式、計算精度可配置。math函數(shù)庫的浮點數(shù)格式:6words1word5#include"Math.h"{unsignedchar unsignedchar SPFOP1,OP2,MathResult,*spfptr;s="456";StringToSpf(&g_ErrorNo,s&OP1);//ConvtofloatofSpfLn}LogHeaderCCvoidSpfLog(unsignedchar*pErr,SPF*Result,SPFC指定浮點數(shù)運算結(jié)果的地址Return操作數(shù)數(shù)據(jù)為Sunplus浮點數(shù)格式,浮點數(shù)的格式、計算精度可配置。math函數(shù)庫的浮點數(shù)格式:6words1word5#include"Math.h"{unsignedchar unsignedchar unsignedint SPFOP1,OP2,MathResult,*spfptr;s="456";StringToSpf(&g_ErrorNo,s&OP1);//ConvtofloatofSpfLog}浮點數(shù)計算yxHeaderCCvoidSpfPower(unsignedchar*pErr,SPF*Result,SPF*pOP1,SPFC指定浮點數(shù)運算結(jié)果的地址12Return操作數(shù)數(shù)據(jù)為Sunplus浮點數(shù)格式,浮點數(shù)的格式、計算精度可配置。math函數(shù)庫的浮點數(shù)格式:6words1word5#include"Math.h"{unsignedchar unsignedchar SPFOP1,OP2,MathResult,*spfptr;s="456";StringToSpf(&g_ErrorNo,s&OP1);//ConvtofloatofSpfPower(&g_ErrorNo,&MathResult,&OP1,}浮點數(shù)計算exHeaderCCvoidSpfExp(unsignedchar*pErr,SPF*Result,SPFC指定浮點數(shù)運算結(jié)果的地址Return操作數(shù)數(shù)據(jù)為Sunplus浮點數(shù)格式,浮點數(shù)的格式、計算精度可配置。math函數(shù)庫的浮點數(shù)格式:6words1word5#include"Math.h"{unsignedchar unsignedchar SPFOP1,OP2,MathResult,*spfptr;s="456";StringToSpf(&g_ErrorNo,s&OP1);//ConvtofloatofSpfExp}浮點數(shù)計算x√HeaderCCvoidSpfXRoot(unsignedchar*pErr,SPF*Result,SPF*pOP1,SPFC12Return操作數(shù)數(shù)據(jù)為Sunplus浮點數(shù)格式,浮點數(shù)的格式、計算精度可配置。math函數(shù)庫的浮點數(shù)格式:6words1word5#include"Math.h"{unsignedchar unsignedchar SPFOP1,OP2,MathResult,*spfptr;s="456";StringToSpf(&g_ErrorNo,s&OP1);//ConvtofloatofSpfXRoot}HeaderCCvoidSpfReciprocal(unsignedchar*pErr,SPF*Result,SPFC指定浮點數(shù)運算結(jié)果的地址Return操作數(shù)數(shù)據(jù)為Sunplus浮點數(shù)格式,浮點數(shù)的格式、計算精度可配置。math函數(shù)庫的浮點數(shù)格式:6words1word5#include"Math.h"{unsignedchar unsignedchar SPFOP1,OP2,MathResult,*spfptr;s="456";StringToSpf(&g_ErrorNo,s&OP1);//ConvtofloatofSpfReciprocal}浮點數(shù)SinHeaderCCvoidSpfSin(unsignedchar*pErr,SPF*Result,SPFC指定浮點數(shù)運算結(jié)果的地址Return操作數(shù)數(shù)據(jù)為Sunplus浮點數(shù)格式,浮點數(shù)的格式、計算精度可配置。math函數(shù)庫的浮點數(shù)格式:6words1word5#include"Math.h"{unsignedchar unsignedchar SPFOP1,OP2,MathResult,*spfptr;s="456";StringToSpf(&g_ErrorNo,s&OP1);//ConvtofloatofSpfSin}浮點數(shù)計算CosHeaderCCvoidSpfCos(unsignedchar*pErr,SPF*Result,SPFC指定浮點數(shù)運算結(jié)果的地址Return操作數(shù)數(shù)據(jù)為Sunplus浮點數(shù)格式,浮點數(shù)的格式、計算精度可配置。math函數(shù)庫的浮點數(shù)格式:6words1word5#include"Math.h"{unsignedchar unsignedchar SPFOP1,OP2,MathResult,*spfptr;s="456";StringToSpf(&g_ErrorNo,s&OP1);//ConvtofloatofSpfCos}浮點數(shù)計算TanHeaderCCvoidSpfCos(unsignedchar*pErr,SPF*Result,SPFC指定浮點數(shù)運算結(jié)果的地址Return操作數(shù)數(shù)據(jù)為Sunplus浮點數(shù)格式,浮點數(shù)的格式、計算精度可配置。math函數(shù)庫的浮點數(shù)格式:6words1word5#include"Math.h"{unsignedchar unsignedchar SPFOP1,OP2,MathResult,*spfptr;s="456";StringToSpf(&g_ErrorNo,s&OP1);//Convtofloatof}浮點數(shù)計算ASinHeaderCCvoidSpfCos(unsignedchar*pErr,SPF*Result,SPFC指定浮點數(shù)運算結(jié)果的地址Return操作數(shù)數(shù)據(jù)為Sunplus浮點數(shù)格式,浮點數(shù)的格式、計算精度可配置。math函數(shù)庫的浮點數(shù)格式:6words1word5#include"Math.h"{unsignedchar unsignedchar SPFOP1,OP2,MathResult,*spfptr;s="456";StringToSpf(&g_ErrorNo,s&OP1);//ConvtofloatofSpfASin}浮點數(shù)計算ACosHeaderCCvoidSpfACos(unsignedchar*pErr,SPF*Result,SPFC指定浮點數(shù)運算結(jié)果的地址Return操作數(shù)數(shù)據(jù)為Sunplus浮點數(shù)格式,浮點數(shù)的格式、計算精度可配置。math函數(shù)庫的浮點數(shù)格式:6words1word5#include"Math.h"{unsignedchar unsignedchar SPFOP1,OP2,MathResult,*spfptr;s="456";StringToSpf(&g_ErrorNo,s&OP1);//ConvtofloatofSpfACos}浮點數(shù)計算ATanHeaderCCvoidSpfATan(unsignedchar*pErr,SPF*Result,SPFC指定浮點數(shù)運算結(jié)果的地址Return操作數(shù)數(shù)據(jù)為Sunplusmath6words1word5#include"Math.h"{unsignedchar unsignedchar SPFOP1,OP2,MathResult,*spfptr;s="456";StringToSpf(&g_ErrorNo,s&OP1);//Convtofloatof}浮點數(shù)計算SinhHeaderCCvoidSpfSinh(unsignedchar*pErr,SPF*Result,SPFC指定浮點數(shù)運算結(jié)果的地址Return操作數(shù)數(shù)據(jù)為Sunplus浮點數(shù)格式,浮點數(shù)的格式、計算精度可配置。math函數(shù)庫的浮點數(shù)格式:6words1word5#include"Math.h"{unsignedchar unsignedchar SPFOP1,OP2,MathResult,*spfptr;s="456";StringToSpf(&g_ErrorNo,s&OP1);//ConvtofloatofSpfSinh}CoshHeaderCCvoidSpfCosh(unsignedchar*pErr,SPF*Result,SPFC指定浮點數(shù)運算結(jié)果的地址Return操作數(shù)數(shù)據(jù)為Sunplus浮點數(shù)格式,浮點數(shù)的格式、計算精度可配置。math函數(shù)庫的浮點數(shù)格式:6words1word5#include"Math.h"{unsignedchar unsignedchar SPFOP1,OP2,MathResult,*spfptr;s="456";StringToSpf(&g_ErrorNo,s&OP1);//ConvtofloatofSpfCosh}浮點數(shù)計算TanhHeaderCCvoidSpfTanh(unsignedchar*pErr,SPF*Result,SPFC指定浮點數(shù)運算結(jié)果的地址Return操作數(shù)數(shù)據(jù)為Sunplus浮點數(shù)格式,浮點數(shù)的格式、計算精度可配置。math函數(shù)庫的浮點數(shù)格式:6words1word5#include"Math.h"{unsignedchar unsignedchar SPFOP1,OP2,MathResult,*spfptr;s="456";StringToSpf(&g_ErrorNo,s&OP1);//Convtofloatof}浮點數(shù)計算ASinhHeaderCCvoidSpfASinh(unsignedchar*pErr,SPF*Result,SPFC指定浮點數(shù)運算結(jié)果的地址Return操作數(shù)數(shù)據(jù)為Sunplus浮點數(shù)格式,浮點數(shù)的格式、計算精度可配置。math函數(shù)庫的浮點數(shù)格式:6words1word5#include{unsignedchar unsignedchar SPFOP1,OP2,MathResult,*spfptr;s="456";StringToSpf(&g_ErrorNo,s&OP1);//ConvtofloatofSpfASinh}浮點數(shù)計算ACoshHeaderCCvoidSpfACosh(unsignedchar*pErr,SPF*Result,SPFC指定浮點數(shù)運算結(jié)果的地址Return操作數(shù)數(shù)據(jù)為Sunplus浮點數(shù)格式,浮點數(shù)的格式、計算精度可配置。math函數(shù)庫的浮點數(shù)格式:6words1word5#include"Math.h"{unsignedchar unsignedchar SPFOP1,OP2,MathResult,*spfptr;s="456";StringToSpf(&g_ErrorNo,s&OP1);//ConvtofloatofSpfACosh}浮點數(shù)計算ATanhHeaderCCvoidSpfATanh(unsignedchar*pErr,SPF*Result,SPFC指定浮點數(shù)運算結(jié)果的地址Return操作數(shù)數(shù)據(jù)為Sunplus浮點數(shù)格式,浮點數(shù)的格式、計算精度可配置。math函數(shù)庫的浮點數(shù)格式:6words1word5#include"Math.h"{unsignedchar unsignedchar SPFOP1,OP2,MathResult,*spfptr;s="456";StringToSpf(&g_ErrorNo,s&OP1);//Convtofloatof}HeaderCCvoidSpfFactorial(unsignedchar*pErr,SPF*Result,SPFC指定浮點數(shù)運算結(jié)果的地址Return操作數(shù)數(shù)據(jù)為Sunplus浮點數(shù)格式,浮點數(shù)的格式、計算精度可配置。math函數(shù)庫的浮點數(shù)格式:6words1word5#include"Math.h"{unsignedchar unsignedchar SPFOP1,OP2,MathResult,*spfptr;s="456";StringToSpf(&g_ErrorNo,s&OP1);//ConvtofloatofSpfFactorial}HeaderCCvoidSpfNpr(unsignedchar*pErr,SPF*Result,SPF*pOP1,SPFC指定浮點數(shù)運算結(jié)果的地址12Return操作數(shù)數(shù)據(jù)為Sunplus浮點數(shù)格式,浮點數(shù)的格式、計算精度可配置。math函數(shù)庫的浮點數(shù)格式:6words1word5#include"Math.h"{unsignedchar unsignedchar SPFOP1,OP2,MathResult,*spfptr;s="456";StringToSpf(&g_ErrorNo,s&OP1);//Convtofloatofs=StringToSpf(&g_ErrorNo,s&OP2);//ConvtofloatofSpfNpr}HeaderCCvoidSpfNcr(unsignedchar*pErr,SPF*Result,SPF*pOP1,SPFC指定浮點數(shù)運算結(jié)果的地址12Return操作數(shù)數(shù)據(jù)為Sunplus浮點數(shù)格式,浮點數(shù)的格式、計算精度可配置。math函數(shù)庫的浮點數(shù)格式:6words1word5#include"Math.h"{unsignedchar unsignedchar SPFOP1,OP2,MathResult,*spfptr;s="456";StringToSpf(&g_ErrorNo,s&OP1);//Convtofloatofsunpluss="1.53";StringToSpf(&g_ErrorNo,s&OP2);//ConvtofloatofSpfNcr}HeaderCCvoidSpfInt(unsignedchar*pErr,SPF*Result,SPFC指定浮點數(shù)運算結(jié)果的地址1Return操作數(shù)數(shù)據(jù)為Sunplus浮點數(shù)格式,浮點數(shù)的格式、計算精度可配置。math函數(shù)庫的浮點數(shù)格式:6words1word5#include"Math.h"{unsignedchar unsignedchar SPFOP1,OP2,MathResult,*spfptr;s="456";StringToSpf(&g_ErrorNo,s&OP1);//ConvtofloatofSpfInt}浮點數(shù)轉(zhuǎn)換函數(shù)102、轉(zhuǎn)換后的浮點數(shù)結(jié)果在指定OP1中3HeaderCCStringToSpf(unsignedchar*pErr,SPF*pOP1,unsignedcharC Returnmath6words1word5#include"Math.h"{unsignedchar unsignedchar SPFOP1,OP2,*spfptr;s="456";StringToSpf(&g_ErrorNo,s&OP1);//Convtofloatof}1、轉(zhuǎn)換后的字符串結(jié)果在指定中位置23、Digit的個數(shù)可以進行配置。進行結(jié)果顯示順序顯示即可。4、數(shù)據(jù)的溢出和判斷需要在上層根據(jù)規(guī)格自行判斷HeaderCCCReturnmath6words1word5#include"Math.h"{unsignedchar unsignedchar SPFs=StringToSpf(&g_ErrorNo,s&OP1);//ConvtofloatofSpfLog}12、轉(zhuǎn)換后的字符串結(jié)果在指定中位置34、Digit的個數(shù)可以進行配置。進行結(jié)果顯示順序顯示即可。5、數(shù)據(jù)的溢出和判斷需要在上層根據(jù)規(guī)格自行判斷HeaderCCSpfToFixString(unsignedchar*pErr,SPF*pOP1,unsignedchar*StringAdr,unsignedintFixCount);CReturnmath6words1word5#include"Math.h"{unsignedchar unsignedchar unsignedint SPFOP1,OP2,*spfptr;s=StringToSpf(&g_ErrorNo,s&OP1);//ConvtofloatofSpfLog}1122、轉(zhuǎn)換后的字符串結(jié)果在指定中位置34、函數(shù)內(nèi)部含有對數(shù)據(jù)范圍的判斷。包括益處錯誤和默認(rèn)5HeaderCCvoidSpfToMantissaStr(unsignedchar*pErr,SPF*pOP1,unsigned*StringAdr,unsignedintCReturnmath6words1word5#include"Math.h"{unsignedchar unsignedchar unsignedint SPFOP1,OP2,*spfptr;s=StringToSpf(&g_ErrorNo,s&OP1);//ConvtofloatofsunplusSpfToMantissaStr(&g_ErrorNo,s,&OP1,MantissaLength);}1個Word2word表示不下時,會拋出overflowHeaderCC C指定浮點數(shù)運算結(jié)果的地址1Returnmath6words1word5#include"Math.h"{unsignedchar unsignedchar SPFOP1,OP2,*spfptr;s="456";SpfLog}1個WordHeaderCCvoidSpfIntToFloat(unsignedchar*pErr,SPF*pOP1,intC指定浮點數(shù)轉(zhuǎn)換結(jié)果的地址wordReturnmath6words1word5#include"Math.h"{unsignedchar SPFOP1;int}HeaderCCvoidSpfDegToGrad(unsignedchar*pErr,SPF*Result,SPFC指定浮點數(shù)運算結(jié)果的地址1Returnmath6words1word5#include"Math.h"{unsignedchar unsignedchar SPFOP1,OP2,MathResult,*spfptr;s="23";SpfLog}HeaderCCvoidSpfDegToRad(unsignedchar*pErr,SPF*Result,SPFC指定浮點數(shù)運算結(jié)果的地址1Returnmath6words1word5#include"Math.h"{unsignedchar unsignedchar SPFOP1,OP2,MathResult,*spfptr;s="23";SpfLogSpfDegToRad(&g_ErrorNo,}HeaderCCvoidSpfRadToDeg(unsignedchar*pErr,SPF*Result,SPFC指定浮點數(shù)運算結(jié)果的地址1Returnmath6words1word5#include"Math.h"{unsignedchar unsignedchar SPFOP1,OP2,MathResult,*spfptr;s="23";SpfLog}HeaderCCvoidSpfRadToGrad(unsignedchar*pErr,SPF*Result,SPFC指定浮點數(shù)運算結(jié)果的地址1Returnmath6words1word5#include"Math.h"{unsignedchar unsignedchar SPFOP1,OP2,MathResult,*spfptr;s="23";SpfLog}HeaderCCvoidSpfGradToDeg(unsignedchar*pErr,SPF*Result,SPFC指定浮點數(shù)運算結(jié)果的地址1Returnmath6words1word5#include"Math.h"{unsignedchar unsignedchar SPFOP1,OP2,MathResult,*spfptr;s="23";SpfLog}HeaderCCvoidSpfGradToRad(unsignedchar*pErr,SPF*Result,SPFC指定浮點數(shù)運算結(jié)果的地址1Returnmath6words1word5#include"Math.h"{unsignedchar unsignedchar SPFOP1,OP2,MathResult,*spfptr;s="23";SpfLog}浮點數(shù)比較函HeaderCCintSpfSignCmp(unsignedchar*pErr,SPF*,SPFC12Return操作數(shù)數(shù)據(jù)為Base數(shù)據(jù)格式,數(shù)據(jù)格式、計算精度可配置。#include"Math.h"{unsignedchar unsignedchar unsigned SPFOP1,OP2,*spfptr;s="456";StringToSpf(&g_ErrorNo,s&OP1);//Convtofloatofsunpluss="1.53";StringToSpf(&g_ErrorNo,s&OP2);//ConvtofloatofsunplusI=SpfSignCmp(&g_ErrorNo,&OP1,&OP2);}HeaderCCintSpfIsInteger(unsignedchar*pErr,SPF*,SPFC1Return#include"Math.h"{unsignedchar unsignedchar unsignedchar I;SPFOP1,OP2,*spfptr;s="456";StringToSpf(&g_ErrorNo,s&OP1);//ConvtofloatofsunplusI=SpfIsInteger(&g_ErrorNo,&OP1,&OP2);}Base運算函數(shù)BaseHeaderCCvoidSpbAdd(unsignedchar*pErr,SPF*Result,SPF*pOP1,SPFC指定浮點數(shù)運算結(jié)果的地址12Return操作數(shù)數(shù)據(jù)為Base數(shù)據(jù)格式,數(shù)據(jù)格式、計算精度可配置。#include"Math.h"{unsignedchar unsignedchar SPFOP1,OP2,MathResult,*spfptr;s="123";DecStringToSpb(&gErrorNo,s,,&OP1););//ConvtoBasedataofs=HexStringToSpb(&g_ErrorNo,s,,&OP1););//ConvtoBasedataofsunplus}BaseHeaderCCvoidSpbSbb(unsignedchar*pErr,SPF*Result,SPF*pOP1,SPFC指定浮點數(shù)運算結(jié)果的地址12Return操作數(shù)數(shù)據(jù)為Base數(shù)據(jù)格式,數(shù)據(jù)格式、計算精度可配置。#include"Math.h"{unsignedchar unsignedchar SPFOP1,OP2,MathResult,*spfptr;s="123";DecStringToSpb(&g_ErrorNo,s,,&OP1););//ConvtoBasedataofsunpluss="7AF";HexStringToSpb(&g_ErrorNo,s,,&OP1););//ConvtoBasedataofsunplusSpbSbb(&g_ErrorNo,&MathResult,&OP1,&OP2);}BaseHeaderCCvoidSpbMul(unsignedchar*pErr,SPF*Result,SPF*pOP1,SPFC指定浮點數(shù)運算結(jié)果的地址12Return操作數(shù)數(shù)據(jù)為Base數(shù)據(jù)格式,數(shù)據(jù)格式、計算精度可配置。#include"Math.h"{unsignedchar unsignedchar SPFOP1,OP2,MathResult,*spfptr;s="123";DecStringToSpb(&g_ErrorNo,s,,&OP1););//ConvtoBasedataofsunpluss="7AF";HexStringToSpb(&g_ErrorNo,s,,&OP1););//ConvtoBasedataofsunplusSpbMul(&g_ErrorNo,&MathResult,&OP1,&OP2);}BaseHeaderCCvoidSpbDiv(unsignedchar*pErr,SPF*Result,SPF*pOP1,SPFC指定浮點數(shù)運算結(jié)果的地址12Return操作數(shù)數(shù)據(jù)為Base數(shù)據(jù)格式,數(shù)據(jù)格式、計算精度可配置。#include"Math.h"{unsignedchar unsignedchar SPFOP1,OP2,MathResult,*spfptr;s="123";DecStringToSpb(&g_ErrorNo,s,,&OP1););//ConvtoBasedataofsunpluss="7AF";HexStringToSpb(&g_ErrorNo,s,,&OP1););//ConvtoBasedataofsunplusSpbDiv(&g_ErrorNo,&MathResult,&OP1,&OP2);}BaseHeaderCCvoidSpbAnd(unsignedchar*pErr,SPF*Result,SPF*pOP1,SPFC指定浮點數(shù)運算結(jié)果的地址12Return操作數(shù)數(shù)據(jù)為Base數(shù)據(jù)格式,數(shù)據(jù)格式、計算精度可配置。#include"Math.h"{unsignedchar unsignedchar SPFOP1,OP2,MathResult,*spfptr;s="123";DecStringToSpb(&g_ErrorNo,s,,&OP1););//ConvtoBasedataofsunpluss="7AF";HexStringToSpb(&g_ErrorNo,s,,&OP1););//ConvtoBasedataofsunplusSpbAnd(&g_ErrorNo,&MathResult,&OP1,&OP2);}BaseHeaderCCvoidSpbNand(unsignedchar*pErr,SPF*Result,SPF*pOP1,SPFC指定浮點數(shù)運算結(jié)果的地址12Return操作數(shù)數(shù)據(jù)為Base數(shù)據(jù)格式,數(shù)據(jù)格式、計算精度可配置。#include"Math.h"{unsignedchar unsignedchar SPFOP1,OP2,MathResult,*spfptr;s="123";DecStringToSpb(&g_ErrorNo,s,,&OP1););//ConvtoBasedataofsunpluss="7AF";HexStringToSpb(&g_ErrorNo,s,,&OP1););//ConvtoBasedataofsunplusSpbNand(&g_ErrorNo,&MathResult,&OP1,&OP2);}BaseHeaderCCvoidSpbNxor(unsignedchar*pErr,SPF*Result,SPF*pOP1,SPFC指定浮點數(shù)運算結(jié)果的地址12Return操作數(shù)數(shù)據(jù)為Base數(shù)據(jù)格式,數(shù)據(jù)格式、計算精度可配置。#include"Math.h"{unsignedchar unsignedchar SPFOP1,OP2,MathResult,*spfptr;s="123";DecStringToSpb(&g_ErrorNo,s,,&OP1););//ConvtoBasedataofsunpluss="7AF";HexStringToSpb(&g_ErrorNo,s,,&OP1););//ConvtoBasedataofsunplusSpbNxor(&g_ErrorNo,&MathResult,&OP1,&OP2);}BaseHeaderCCvoidSpbOr(unsignedchar*pErr,SPF*Result,SPF*pOP1,SPFC指定浮點數(shù)運算結(jié)果的地址12Return操作數(shù)數(shù)據(jù)為Base數(shù)據(jù)格式,數(shù)據(jù)格式、計算精度可配置。#include"Math.h"{unsignedchar unsignedchar SPFOP1,OP2,MathResult,*spfptr;s="123";DecStringToSpb(&g_ErrorNo,s,,&OP1););//ConvtoBasedataofsunpluss="7AF";HexStringToSpb(&g_ErrorNo,s,,&OP1););//ConvtoBasedataofsunplusSpbOr(&g_ErrorNo,&MathResult,&OP1,&OP2);}BaseHeaderCCvoidSpbXor(unsignedchar*pErr,SPF*Result,SPF*pOP1,SPFC指定浮點數(shù)運算結(jié)果的地址12Return操作數(shù)數(shù)據(jù)為Base數(shù)據(jù)格式,數(shù)據(jù)格式、計算精度可配置。#include{unsigned unsigned SPFOP1,OP2,MathResults=DecStringToSpb(&g_ErrorNo,s,,&OP1););//ConvtoBasedataofs=HexStringToSpb(&g_ErrorNo,s,,&OP1););//ConvtoBasedataofSpbXor}BaseHeaderCCvoidSpbNot(unsignedchar*pErr,SPF*Result,SPF*pOP1,SPFC指定浮點數(shù)運算結(jié)果的地址1Return操作數(shù)數(shù)據(jù)為Base數(shù)據(jù)格式,數(shù)據(jù)格式、計算精度可配置。#include"Math.h"{unsignedchar unsignedchar SPFOP1,OP2,MathResult,*spfptr;s="7AF";HexStringToSpb(&g_ErrorNo,s,,&OP1););//ConvtoBasedataofsunplusSpbNot(&g_ErrorNo,&MathResult,&OP1);}BaseHeaderCCvoidSpbNeg(unsignedchar*pErr,SPF*Result,SPF*pOP1,SPFC指定浮點數(shù)運算結(jié)果的地址1Return操作數(shù)數(shù)據(jù)為Base數(shù)據(jù)格式,數(shù)據(jù)格式、計算精度可配置。#include"Math.h"{unsignedchar unsignedchar SPFOP1,OPMathResult,2;s="7AF";HexStringToSpb(&g_ErrorNo,s,,&OP1););//ConvtoBasedataofsunplusSpbNeg(&g_ErrorNo,&MathResult,&OP1);}Base數(shù)據(jù)轉(zhuǎn)換函數(shù)將二進制字符串轉(zhuǎn)換為Base102、轉(zhuǎn)換后的Base結(jié)果在指定OP1中3、可一判斷出輸入數(shù)據(jù)的4OverFlo
溫馨提示
- 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請下載最新的WinRAR軟件解壓。
- 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
- 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會有圖紙預(yù)覽,若沒有圖紙預(yù)覽就沒有圖紙。
- 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
- 5. 人人文庫網(wǎng)僅提供信息存儲空間,僅對用戶上傳內(nèi)容的表現(xiàn)方式做保護處理,對用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對任何下載內(nèi)容負(fù)責(zé)。
- 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請與我們聯(lián)系,我們立即糾正。
- 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時也不承擔(dān)用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。
最新文檔
- 二零二五年度財務(wù)信息系統(tǒng)集成合同3篇
- 2024石子深加工技術(shù)研發(fā)與應(yīng)用合同3篇
- 2024玩具樂園設(shè)備采購及租賃服務(wù)合同3篇
- 2024版影視作品版權(quán)轉(zhuǎn)讓與授權(quán)播放合同
- 2025年松樹造林項目采購合同3篇
- 二零二五版船舶光租及船舶安全管理體系合同3篇
- 二零二五年度安置房項目公共設(shè)施維護合同3篇
- 2025年度淋浴房綠色環(huán)保材料采購與安裝服務(wù)合同4篇
- 2025年度鋁材貿(mào)易結(jié)算與風(fēng)險管理合同4篇
- 二零二五年度跨境電商進口采購合同3篇
- 領(lǐng)導(dǎo)溝通的藝術(shù)
- 發(fā)生用藥錯誤應(yīng)急預(yù)案
- 南潯至臨安公路(南潯至練市段)公路工程環(huán)境影響報告
- 綠色貸款培訓(xùn)課件
- 大學(xué)生預(yù)征對象登記表(樣表)
- 主管部門審核意見三篇
- 初中數(shù)學(xué)校本教材(完整版)
- 父母教育方式對幼兒社會性發(fā)展影響的研究
- 新課標(biāo)人教版數(shù)學(xué)三年級上冊第八單元《分?jǐn)?shù)的初步認(rèn)識》教材解讀
- (人教版2019)數(shù)學(xué)必修第一冊 第三章 函數(shù)的概念與性質(zhì) 復(fù)習(xí)課件
- 重慶市銅梁區(qū)2024屆數(shù)學(xué)八上期末檢測試題含解析
評論
0/150
提交評論