⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 trunc.bas

📁 数字处理函数包(5KB)15datediff.zip指定两个日期计算相隔的天数
💻 BAS
字号:
Option Explicit

Function Trunc& (num#)
Dim t$, i%
Static dec_sep$

   If dec_sep$ = "" Then dec_sep$ = GetPrivateProfileString$("intl", "sDecimal", "WIN.INI")

   t$ = CStr(num#)
   i% = InStr(t$, dec_sep$)
   If i% > 0 Then t$ = Left$(t$, i% - 1)

   Trunc& = CLng(t$)

End Function

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -