單片機用精度除法函數 - 免費下載
源碼資源
文件大小:1 K
?? 溫馨提示:本資源由用戶 qibao9891 上傳分享,僅供學習交流使用。如有侵權,請聯系我們刪除。
精度除法函數。
調用函數,并輸入被除數、除數和精確到小數點后多少位。即可得到商的整數部分和小數部分。
/*************************精度除法函數********************************/
//========================================================================
// 函數: Void chufa(unsigned long beichushu,unsigned long chushu, unsigned char wei)
// 描述: 精度除法
// 參數: unsigned long beichushu, 被除數
// unsigned long chushu, 除數
// unsigned char wei 精確到小數點后多少位
// 返回: 無.
// 版本: V1.0, 2017-8-3
//========================================================================