版權(quán)說(shuō)明:本文檔由用戶(hù)提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請(qǐng)進(jìn)行舉報(bào)或認(rèn)領(lǐng)
文檔簡(jiǎn)介
MathLibraryUser’sReleaser NumberReleasedDate:2004-11- ReleasedVersionRevisionTableof 浮點(diǎn)數(shù)運(yùn)算函數(shù) 浮點(diǎn)數(shù)轉(zhuǎn)換函數(shù) 浮點(diǎn)數(shù)比較函數(shù) BASE運(yùn)算函數(shù) BASE轉(zhuǎn)換函數(shù) FUNCTION PROJECT C 浮點(diǎn)數(shù)轉(zhuǎn)換函數(shù) 浮點(diǎn)數(shù)比較函 BASE運(yùn)算函數(shù) BASE數(shù)據(jù)轉(zhuǎn)換函數(shù) MathAPI16AP浮點(diǎn)數(shù)運(yùn)算函數(shù)lus(現(xiàn)6,24位精度f(wàn)untionlit浮點(diǎn)數(shù)轉(zhuǎn)換函數(shù)SunplusASCII浮點(diǎn)數(shù)轉(zhuǎn)化為字符串,用于結(jié)果顯示。首先將Sunplus格式浮點(diǎn)數(shù)轉(zhuǎn)化為BCD碼,然后再將C_BcdCodeLenth默認(rèn)為“0AP根據(jù)自己的規(guī)格進(jìn)行判斷處理。浮點(diǎn)數(shù)比較函數(shù)SunplusBase運(yùn)算函數(shù)BaseOPBase轉(zhuǎn)換函數(shù)BaseASCIIBaseBase的結(jié)果顯示。包括二進(jìn)制、八進(jìn)制、十進(jìn)制、十六進(jìn)制四AP根據(jù)自己的規(guī)格進(jìn)行判斷處理BaseBaseFunctionPErr,Result數(shù),在指定的Result中。是浮點(diǎn)數(shù),在指定的Result中是浮點(diǎn)數(shù),在指定的Result中是浮點(diǎn)數(shù),在指定的Result中是浮點(diǎn)數(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函是浮點(diǎn)數(shù),在指定的Result中算ex函PErr,Result數(shù),在指定的Result中。算x√是浮點(diǎn)數(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中。是浮點(diǎn)數(shù),在指定的Result中是浮點(diǎn)數(shù),在指定的Result中PErr,Result數(shù),在指定的Result中。PErr,Result數(shù),在指定的Result中。102、轉(zhuǎn)換后的浮點(diǎn)數(shù)結(jié)果在指OP123、Digit的個(gè)數(shù)可以進(jìn)行配置。進(jìn)行結(jié)4、數(shù)據(jù)的溢出和判斷需要在上23、Digit的個(gè)數(shù)可以進(jìn)行配置。進(jìn)行結(jié)5、數(shù)據(jù)的溢出和判斷需要在上12。34包括益處錯(cuò)誤和默認(rèn)1個(gè)PErr,Result點(diǎn)數(shù),在指定的Result中。2wordoverflowPErr,Result點(diǎn)數(shù),在指定的Result中。是浮點(diǎn)數(shù),在指定的Result中是浮點(diǎn)數(shù),在指定的Result中是浮點(diǎn)數(shù),在指定的Result中是浮點(diǎn)數(shù),在指定的Result中是浮點(diǎn)數(shù),在指定的Result中是浮點(diǎn)數(shù),在指定的Result中是浮點(diǎn)數(shù),在指定的Result中是浮點(diǎn)數(shù),在指定的Result中是浮點(diǎn)數(shù),在指定的Result中PErr,Result點(diǎn)數(shù),在指定的Result中。PErr,Result點(diǎn)數(shù),在指定的Result中。換為Base202、轉(zhuǎn)換后的Base結(jié)果在指Result3、可以判斷出輸入數(shù)據(jù)的OverFlow錯(cuò)誤。換為Base202、轉(zhuǎn)換后的Base結(jié)果在指Result3、可以判斷出輸入數(shù)據(jù)的OverFlow錯(cuò)誤。換為Base202、轉(zhuǎn)換后的Base結(jié)果在指Result3、可以判斷出輸入數(shù)據(jù)的4OverFlow202、轉(zhuǎn)換后的Base結(jié)果在指Result3、可以判斷出輸入數(shù)據(jù)的OverFlow錯(cuò)誤。將Base格將Base格2C_OctResultMax,設(shè)將Base格2C_OctResultMax,設(shè)將Base格2C_OctResultMax,設(shè)Parameter12指定的浮ProjectCApplcationMath浮點(diǎn)數(shù)運(yùn)算函數(shù)HeaderCCvoidSpfAbs(unsignedchar*pErr,SPF*Result,SPFC指定浮點(diǎn)數(shù)運(yùn)算結(jié)果的地址Return操作數(shù)數(shù)據(jù)為Sunplus浮點(diǎn)數(shù)格式,浮點(diǎn)數(shù)的格式、計(jì)算精度可配置。math函數(shù)庫(kù)的浮點(diǎn)數(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指定浮點(diǎn)數(shù)運(yùn)算結(jié)果的地址12Return操作數(shù)數(shù)據(jù)為Sunplus浮點(diǎn)數(shù)格式,浮點(diǎn)數(shù)的格式、計(jì)算精度可配置。math函數(shù)庫(kù)的浮點(diǎn)數(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指定浮點(diǎn)數(shù)運(yùn)算結(jié)果的地址12Return操作數(shù)數(shù)據(jù)為Sunplus浮點(diǎn)數(shù)格式,浮點(diǎn)數(shù)的格式、計(jì)算精度可配置。math函數(shù)庫(kù)的浮點(diǎn)數(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指定浮點(diǎn)數(shù)運(yùn)算結(jié)果的地址12Return操作數(shù)數(shù)據(jù)為Sunplus浮點(diǎn)數(shù)格式,浮點(diǎn)數(shù)的格式、計(jì)算精度可配置。math函數(shù)庫(kù)的浮點(diǎn)數(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指定浮點(diǎn)數(shù)運(yùn)算結(jié)果的地址12Return操作數(shù)數(shù)據(jù)為Sunplus浮點(diǎn)數(shù)格式,浮點(diǎn)數(shù)的格式、計(jì)算精度可配置。math函數(shù)庫(kù)的浮點(diǎn)數(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指定浮點(diǎn)數(shù)運(yùn)算結(jié)果的地址Return操作數(shù)數(shù)據(jù)為Sunplus浮點(diǎn)數(shù)格式,浮點(diǎn)數(shù)的格式、計(jì)算精度可配置。math函數(shù)庫(kù)的浮點(diǎn)數(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指定浮點(diǎn)數(shù)運(yùn)算結(jié)果的地址Return操作數(shù)數(shù)據(jù)為Sunplus浮點(diǎn)數(shù)格式,浮點(diǎn)數(shù)的格式、計(jì)算精度可配置。math函數(shù)庫(kù)的浮點(diǎn)數(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指定浮點(diǎn)數(shù)運(yùn)算結(jié)果的地址Return操作數(shù)數(shù)據(jù)為Sunplus浮點(diǎn)數(shù)格式,浮點(diǎn)數(shù)的格式、計(jì)算精度可配置。math函數(shù)庫(kù)的浮點(diǎn)數(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指定浮點(diǎn)數(shù)運(yùn)算結(jié)果的地址Return操作數(shù)數(shù)據(jù)為Sunplus浮點(diǎn)數(shù)格式,浮點(diǎn)數(shù)的格式、計(jì)算精度可配置。math函數(shù)庫(kù)的浮點(diǎn)數(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指定浮點(diǎn)數(shù)運(yùn)算結(jié)果的地址Return操作數(shù)數(shù)據(jù)為Sunplus浮點(diǎn)數(shù)格式,浮點(diǎn)數(shù)的格式、計(jì)算精度可配置。math函數(shù)庫(kù)的浮點(diǎn)數(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指定浮點(diǎn)數(shù)運(yùn)算結(jié)果的地址Return操作數(shù)數(shù)據(jù)為Sunplus浮點(diǎn)數(shù)格式,浮點(diǎn)數(shù)的格式、計(jì)算精度可配置。math函數(shù)庫(kù)的浮點(diǎn)數(shù)格式:6words1word5#include"Math.h"{unsignedchar unsignedchar SPFOP1,OP2,MathResult,*spfptr;s="3";StringToSpf(&g_ErrorNo,s&OP1);//ConvtofloatofSpf10Power}浮點(diǎn)數(shù)LnHeaderCCvoidSpfLn(unsignedchar*pErr,SPF*Result,SPFC指定浮點(diǎn)數(shù)運(yùn)算結(jié)果的地址Return操作數(shù)數(shù)據(jù)為Sunplus浮點(diǎn)數(shù)格式,浮點(diǎn)數(shù)的格式、計(jì)算精度可配置。math函數(shù)庫(kù)的浮點(diǎn)數(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指定浮點(diǎn)數(shù)運(yùn)算結(jié)果的地址Return操作數(shù)數(shù)據(jù)為Sunplus浮點(diǎn)數(shù)格式,浮點(diǎn)數(shù)的格式、計(jì)算精度可配置。math函數(shù)庫(kù)的浮點(diǎn)數(shù)格式:6words1word5#include"Math.h"{unsignedchar unsignedchar unsignedint SPFOP1,OP2,MathResult,*spfptr;s="456";StringToSpf(&g_ErrorNo,s&OP1);//ConvtofloatofSpfLog}浮點(diǎn)數(shù)計(jì)算yxHeaderCCvoidSpfPower(unsignedchar*pErr,SPF*Result,SPF*pOP1,SPFC指定浮點(diǎn)數(shù)運(yùn)算結(jié)果的地址12Return操作數(shù)數(shù)據(jù)為Sunplus浮點(diǎn)數(shù)格式,浮點(diǎn)數(shù)的格式、計(jì)算精度可配置。math函數(shù)庫(kù)的浮點(diǎn)數(shù)格式:6words1word5#include"Math.h"{unsignedchar unsignedchar SPFOP1,OP2,MathResult,*spfptr;s="456";StringToSpf(&g_ErrorNo,s&OP1);//ConvtofloatofSpfPower(&g_ErrorNo,&MathResult,&OP1,}浮點(diǎn)數(shù)計(jì)算exHeaderCCvoidSpfExp(unsignedchar*pErr,SPF*Result,SPFC指定浮點(diǎn)數(shù)運(yùn)算結(jié)果的地址Return操作數(shù)數(shù)據(jù)為Sunplus浮點(diǎn)數(shù)格式,浮點(diǎn)數(shù)的格式、計(jì)算精度可配置。math函數(shù)庫(kù)的浮點(diǎn)數(shù)格式:6words1word5#include"Math.h"{unsignedchar unsignedchar SPFOP1,OP2,MathResult,*spfptr;s="456";StringToSpf(&g_ErrorNo,s&OP1);//ConvtofloatofSpfExp}浮點(diǎn)數(shù)計(jì)算x√HeaderCCvoidSpfXRoot(unsignedchar*pErr,SPF*Result,SPF*pOP1,SPFC12Return操作數(shù)數(shù)據(jù)為Sunplus浮點(diǎn)數(shù)格式,浮點(diǎn)數(shù)的格式、計(jì)算精度可配置。math函數(shù)庫(kù)的浮點(diǎn)數(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指定浮點(diǎn)數(shù)運(yùn)算結(jié)果的地址Return操作數(shù)數(shù)據(jù)為Sunplus浮點(diǎn)數(shù)格式,浮點(diǎn)數(shù)的格式、計(jì)算精度可配置。math函數(shù)庫(kù)的浮點(diǎn)數(shù)格式:6words1word5#include"Math.h"{unsignedchar unsignedchar SPFOP1,OP2,MathResult,*spfptr;s="456";StringToSpf(&g_ErrorNo,s&OP1);//ConvtofloatofSpfReciprocal}浮點(diǎn)數(shù)SinHeaderCCvoidSpfSin(unsignedchar*pErr,SPF*Result,SPFC指定浮點(diǎn)數(shù)運(yùn)算結(jié)果的地址Return操作數(shù)數(shù)據(jù)為Sunplus浮點(diǎn)數(shù)格式,浮點(diǎn)數(shù)的格式、計(jì)算精度可配置。math函數(shù)庫(kù)的浮點(diǎn)數(shù)格式:6words1word5#include"Math.h"{unsignedchar unsignedchar SPFOP1,OP2,MathResult,*spfptr;s="456";StringToSpf(&g_ErrorNo,s&OP1);//ConvtofloatofSpfSin}浮點(diǎn)數(shù)計(jì)算CosHeaderCCvoidSpfCos(unsignedchar*pErr,SPF*Result,SPFC指定浮點(diǎn)數(shù)運(yùn)算結(jié)果的地址Return操作數(shù)數(shù)據(jù)為Sunplus浮點(diǎn)數(shù)格式,浮點(diǎn)數(shù)的格式、計(jì)算精度可配置。math函數(shù)庫(kù)的浮點(diǎn)數(shù)格式:6words1word5#include"Math.h"{unsignedchar unsignedchar SPFOP1,OP2,MathResult,*spfptr;s="456";StringToSpf(&g_ErrorNo,s&OP1);//ConvtofloatofSpfCos}浮點(diǎn)數(shù)計(jì)算TanHeaderCCvoidSpfCos(unsignedchar*pErr,SPF*Result,SPFC指定浮點(diǎn)數(shù)運(yùn)算結(jié)果的地址Return操作數(shù)數(shù)據(jù)為Sunplus浮點(diǎn)數(shù)格式,浮點(diǎn)數(shù)的格式、計(jì)算精度可配置。math函數(shù)庫(kù)的浮點(diǎn)數(shù)格式:6words1word5#include"Math.h"{unsignedchar unsignedchar SPFOP1,OP2,MathResult,*spfptr;s="456";StringToSpf(&g_ErrorNo,s&OP1);//Convtofloatof}浮點(diǎn)數(shù)計(jì)算ASinHeaderCCvoidSpfCos(unsignedchar*pErr,SPF*Result,SPFC指定浮點(diǎn)數(shù)運(yùn)算結(jié)果的地址Return操作數(shù)數(shù)據(jù)為Sunplus浮點(diǎn)數(shù)格式,浮點(diǎn)數(shù)的格式、計(jì)算精度可配置。math函數(shù)庫(kù)的浮點(diǎn)數(shù)格式:6words1word5#include"Math.h"{unsignedchar unsignedchar SPFOP1,OP2,MathResult,*spfptr;s="456";StringToSpf(&g_ErrorNo,s&OP1);//ConvtofloatofSpfASin}浮點(diǎn)數(shù)計(jì)算ACosHeaderCCvoidSpfACos(unsignedchar*pErr,SPF*Result,SPFC指定浮點(diǎn)數(shù)運(yùn)算結(jié)果的地址Return操作數(shù)數(shù)據(jù)為Sunplus浮點(diǎn)數(shù)格式,浮點(diǎn)數(shù)的格式、計(jì)算精度可配置。math函數(shù)庫(kù)的浮點(diǎn)數(shù)格式:6words1word5#include"Math.h"{unsignedchar unsignedchar SPFOP1,OP2,MathResult,*spfptr;s="456";StringToSpf(&g_ErrorNo,s&OP1);//ConvtofloatofSpfACos}浮點(diǎn)數(shù)計(jì)算ATanHeaderCCvoidSpfATan(unsignedchar*pErr,SPF*Result,SPFC指定浮點(diǎn)數(shù)運(yùn)算結(jié)果的地址Return操作數(shù)數(shù)據(jù)為Sunplusmath6words1word5#include"Math.h"{unsignedchar unsignedchar SPFOP1,OP2,MathResult,*spfptr;s="456";StringToSpf(&g_ErrorNo,s&OP1);//Convtofloatof}浮點(diǎn)數(shù)計(jì)算SinhHeaderCCvoidSpfSinh(unsignedchar*pErr,SPF*Result,SPFC指定浮點(diǎn)數(shù)運(yùn)算結(jié)果的地址Return操作數(shù)數(shù)據(jù)為Sunplus浮點(diǎn)數(shù)格式,浮點(diǎn)數(shù)的格式、計(jì)算精度可配置。math函數(shù)庫(kù)的浮點(diǎn)數(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指定浮點(diǎn)數(shù)運(yùn)算結(jié)果的地址Return操作數(shù)數(shù)據(jù)為Sunplus浮點(diǎn)數(shù)格式,浮點(diǎn)數(shù)的格式、計(jì)算精度可配置。math函數(shù)庫(kù)的浮點(diǎn)數(shù)格式:6words1word5#include"Math.h"{unsignedchar unsignedchar SPFOP1,OP2,MathResult,*spfptr;s="456";StringToSpf(&g_ErrorNo,s&OP1);//ConvtofloatofSpfCosh}浮點(diǎn)數(shù)計(jì)算TanhHeaderCCvoidSpfTanh(unsignedchar*pErr,SPF*Result,SPFC指定浮點(diǎn)數(shù)運(yùn)算結(jié)果的地址Return操作數(shù)數(shù)據(jù)為Sunplus浮點(diǎn)數(shù)格式,浮點(diǎn)數(shù)的格式、計(jì)算精度可配置。math函數(shù)庫(kù)的浮點(diǎn)數(shù)格式:6words1word5#include"Math.h"{unsignedchar unsignedchar SPFOP1,OP2,MathResult,*spfptr;s="456";StringToSpf(&g_ErrorNo,s&OP1);//Convtofloatof}浮點(diǎn)數(shù)計(jì)算ASinhHeaderCCvoidSpfASinh(unsignedchar*pErr,SPF*Result,SPFC指定浮點(diǎn)數(shù)運(yùn)算結(jié)果的地址Return操作數(shù)數(shù)據(jù)為Sunplus浮點(diǎn)數(shù)格式,浮點(diǎn)數(shù)的格式、計(jì)算精度可配置。math函數(shù)庫(kù)的浮點(diǎn)數(shù)格式:6words1word5#include{unsignedchar unsignedchar SPFOP1,OP2,MathResult,*spfptr;s="456";StringToSpf(&g_ErrorNo,s&OP1);//ConvtofloatofSpfASinh}浮點(diǎn)數(shù)計(jì)算ACoshHeaderCCvoidSpfACosh(unsignedchar*pErr,SPF*Result,SPFC指定浮點(diǎn)數(shù)運(yùn)算結(jié)果的地址Return操作數(shù)數(shù)據(jù)為Sunplus浮點(diǎn)數(shù)格式,浮點(diǎn)數(shù)的格式、計(jì)算精度可配置。math函數(shù)庫(kù)的浮點(diǎn)數(shù)格式:6words1word5#include"Math.h"{unsignedchar unsignedchar SPFOP1,OP2,MathResult,*spfptr;s="456";StringToSpf(&g_ErrorNo,s&OP1);//ConvtofloatofSpfACosh}浮點(diǎn)數(shù)計(jì)算ATanhHeaderCCvoidSpfATanh(unsignedchar*pErr,SPF*Result,SPFC指定浮點(diǎn)數(shù)運(yùn)算結(jié)果的地址Return操作數(shù)數(shù)據(jù)為Sunplus浮點(diǎn)數(shù)格式,浮點(diǎn)數(shù)的格式、計(jì)算精度可配置。math函數(shù)庫(kù)的浮點(diǎn)數(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指定浮點(diǎn)數(shù)運(yùn)算結(jié)果的地址Return操作數(shù)數(shù)據(jù)為Sunplus浮點(diǎn)數(shù)格式,浮點(diǎn)數(shù)的格式、計(jì)算精度可配置。math函數(shù)庫(kù)的浮點(diǎn)數(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指定浮點(diǎn)數(shù)運(yùn)算結(jié)果的地址12Return操作數(shù)數(shù)據(jù)為Sunplus浮點(diǎn)數(shù)格式,浮點(diǎn)數(shù)的格式、計(jì)算精度可配置。math函數(shù)庫(kù)的浮點(diǎn)數(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指定浮點(diǎn)數(shù)運(yùn)算結(jié)果的地址12Return操作數(shù)數(shù)據(jù)為Sunplus浮點(diǎn)數(shù)格式,浮點(diǎn)數(shù)的格式、計(jì)算精度可配置。math函數(shù)庫(kù)的浮點(diǎn)數(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指定浮點(diǎn)數(shù)運(yùn)算結(jié)果的地址1Return操作數(shù)數(shù)據(jù)為Sunplus浮點(diǎn)數(shù)格式,浮點(diǎn)數(shù)的格式、計(jì)算精度可配置。math函數(shù)庫(kù)的浮點(diǎn)數(shù)格式:6words1word5#include"Math.h"{unsignedchar unsignedchar SPFOP1,OP2,MathResult,*spfptr;s="456";StringToSpf(&g_ErrorNo,s&OP1);//ConvtofloatofSpfInt}浮點(diǎn)數(shù)轉(zhuǎn)換函數(shù)102、轉(zhuǎn)換后的浮點(diǎ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的個(gè)數(shù)可以進(jìn)行配置。進(jìn)行結(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的個(gè)數(shù)可以進(jìn)行配置。進(jìn)行結(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)部含有對(duì)數(shù)據(jù)范圍的判斷。包括益處錯(cuò)誤和默認(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個(gè)Word2word表示不下時(shí),會(huì)拋出overflowHeaderCC C指定浮點(diǎn)數(shù)運(yùn)算結(jié)果的地址1Returnmath6words1word5#include"Math.h"{unsignedchar unsignedchar SPFOP1,OP2,*spfptr;s="456";SpfLog}1個(gè)WordHeaderCCvoidSpfIntToFloat(unsignedchar*pErr,SPF*pOP1,intC指定浮點(diǎn)數(shù)轉(zhuǎn)換結(jié)果的地址wordReturnmath6words1word5#include"Math.h"{unsignedchar SPFOP1;int}HeaderCCvoidSpfDegToGrad(unsignedchar*pErr,SPF*Result,SPFC指定浮點(diǎn)數(shù)運(yùn)算結(jié)果的地址1Returnmath6words1word5#include"Math.h"{unsignedchar unsignedchar SPFOP1,OP2,MathResult,*spfptr;s="23";SpfLog}HeaderCCvoidSpfDegToRad(unsignedchar*pErr,SPF*Result,SPFC指定浮點(diǎn)數(shù)運(yùn)算結(jié)果的地址1Returnmath6words1word5#include"Math.h"{unsignedchar unsignedchar SPFOP1,OP2,MathResult,*spfptr;s="23";SpfLogSpfDegToRad(&g_ErrorNo,}HeaderCCvoidSpfRadToDeg(unsignedchar*pErr,SPF*Result,SPFC指定浮點(diǎn)數(shù)運(yùn)算結(jié)果的地址1Returnmath6words1word5#include"Math.h"{unsignedchar unsignedchar SPFOP1,OP2,MathResult,*spfptr;s="23";SpfLog}HeaderCCvoidSpfRadToGrad(unsignedchar*pErr,SPF*Result,SPFC指定浮點(diǎn)數(shù)運(yùn)算結(jié)果的地址1Returnmath6words1word5#include"Math.h"{unsignedchar unsignedchar SPFOP1,OP2,MathResult,*spfptr;s="23";SpfLog}HeaderCCvoidSpfGradToDeg(unsignedchar*pErr,SPF*Result,SPFC指定浮點(diǎn)數(shù)運(yùn)算結(jié)果的地址1Returnmath6words1word5#include"Math.h"{unsignedchar unsignedchar SPFOP1,OP2,MathResult,*spfptr;s="23";SpfLog}HeaderCCvoidSpfGradToRad(unsignedchar*pErr,SPF*Result,SPFC指定浮點(diǎn)數(shù)運(yùn)算結(jié)果的地址1Returnmath6words1word5#include"Math.h"{unsignedchar unsignedchar SPFOP1,OP2,MathResult,*spfptr;s="23";SpfLog}浮點(diǎn)數(shù)比較函HeaderCCintSpfSignCmp(unsignedchar*pErr,SPF*,SPFC12Return操作數(shù)數(shù)據(jù)為Base數(shù)據(jù)格式,數(shù)據(jù)格式、計(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運(yùn)算函數(shù)BaseHeaderCCvoidSpbAdd(unsignedchar*pErr,SPF*Result,SPF*pOP1,SPFC指定浮點(diǎn)數(shù)運(yùn)算結(jié)果的地址12Return操作數(shù)數(shù)據(jù)為Base數(shù)據(jù)格式,數(shù)據(jù)格式、計(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指定浮點(diǎn)數(shù)運(yùn)算結(jié)果的地址12Return操作數(shù)數(shù)據(jù)為Base數(shù)據(jù)格式,數(shù)據(jù)格式、計(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指定浮點(diǎn)數(shù)運(yùn)算結(jié)果的地址12Return操作數(shù)數(shù)據(jù)為Base數(shù)據(jù)格式,數(shù)據(jù)格式、計(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指定浮點(diǎn)數(shù)運(yùn)算結(jié)果的地址12Return操作數(shù)數(shù)據(jù)為Base數(shù)據(jù)格式,數(shù)據(jù)格式、計(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指定浮點(diǎn)數(shù)運(yùn)算結(jié)果的地址12Return操作數(shù)數(shù)據(jù)為Base數(shù)據(jù)格式,數(shù)據(jù)格式、計(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指定浮點(diǎn)數(shù)運(yùn)算結(jié)果的地址12Return操作數(shù)數(shù)據(jù)為Base數(shù)據(jù)格式,數(shù)據(jù)格式、計(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指定浮點(diǎn)數(shù)運(yùn)算結(jié)果的地址12Return操作數(shù)數(shù)據(jù)為Base數(shù)據(jù)格式,數(shù)據(jù)格式、計(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指定浮點(diǎn)數(shù)運(yùn)算結(jié)果的地址12Return操作數(shù)數(shù)據(jù)為Base數(shù)據(jù)格式,數(shù)據(jù)格式、計(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指定浮點(diǎn)數(shù)運(yùn)算結(jié)果的地址12Return操作數(shù)數(shù)據(jù)為Base數(shù)據(jù)格式,數(shù)據(jù)格式、計(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指定浮點(diǎn)數(shù)運(yùn)算結(jié)果的地址1Return操作數(shù)數(shù)據(jù)為Base數(shù)據(jù)格式,數(shù)據(jù)格式、計(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指定浮點(diǎn)數(shù)運(yùn)算結(jié)果的地址1Return操作數(shù)數(shù)據(jù)為Base數(shù)據(jù)格式,數(shù)據(jù)格式、計(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ù)將二進(jìn)制字符串轉(zhuǎn)換為Base102、轉(zhuǎn)換后的Base結(jié)果在指定OP1中3、可一判斷出輸入數(shù)據(jù)的4OverFlo
溫馨提示
- 1. 本站所有資源如無(wú)特殊說(shuō)明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請(qǐng)下載最新的WinRAR軟件解壓。
- 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請(qǐng)聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶(hù)所有。
- 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁(yè)內(nèi)容里面會(huì)有圖紙預(yù)覽,若沒(méi)有圖紙預(yù)覽就沒(méi)有圖紙。
- 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
- 5. 人人文庫(kù)網(wǎng)僅提供信息存儲(chǔ)空間,僅對(duì)用戶(hù)上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對(duì)用戶(hù)上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對(duì)任何下載內(nèi)容負(fù)責(zé)。
- 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請(qǐng)與我們聯(lián)系,我們立即糾正。
- 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時(shí)也不承擔(dān)用戶(hù)因使用這些下載資源對(duì)自己和他人造成任何形式的傷害或損失。
最新文檔
- 專(zhuān)屬2024年商品銷(xiāo)售代表協(xié)議版
- 專(zhuān)業(yè)倉(cāng)儲(chǔ)及配送服務(wù):2024協(xié)議范本版A版
- 科技驅(qū)動(dòng):公司未來(lái)發(fā)展
- 2025年度彩鋼房拆除與綠色建筑認(rèn)證服務(wù)合同范本4篇
- 2025年度影視基地場(chǎng)地借用及拍攝制作合同4篇
- 2025年度科研實(shí)驗(yàn)場(chǎng)地使用權(quán)出讓及研發(fā)支持服務(wù)合同4篇
- 二零二五年度抽沙船租賃及海洋環(huán)境監(jiān)測(cè)協(xié)議3篇
- 2025年度新型工業(yè)園區(qū)土地使用權(quán)交易合同范本4篇
- 2025年智能工廠設(shè)備租賃居間合同示范文本4篇
- 2025年度長(zhǎng)租公寓運(yùn)營(yíng)管理服務(wù)合同4篇
- 領(lǐng)導(dǎo)溝通的藝術(shù)
- 發(fā)生用藥錯(cuò)誤應(yīng)急預(yù)案
- 南潯至臨安公路(南潯至練市段)公路工程環(huán)境影響報(bào)告
- 綠色貸款培訓(xùn)課件
- 大學(xué)生預(yù)征對(duì)象登記表(樣表)
- 主管部門(mén)審核意見(jiàn)三篇
- 初中數(shù)學(xué)校本教材(完整版)
- 父母教育方式對(duì)幼兒社會(huì)性發(fā)展影響的研究
- 新課標(biāo)人教版數(shù)學(xué)三年級(jí)上冊(cè)第八單元《分?jǐn)?shù)的初步認(rèn)識(shí)》教材解讀
- (人教版2019)數(shù)學(xué)必修第一冊(cè) 第三章 函數(shù)的概念與性質(zhì) 復(fù)習(xí)課件
- 重慶市銅梁區(qū)2024屆數(shù)學(xué)八上期末檢測(cè)試題含解析
評(píng)論
0/150
提交評(píng)論