Ms7 Search
Google 搜尋 翻譯
calendar
« 九月 2024 »
            1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30            
近期文章
文章分類
網站連結
Syndicate

« | »

Access 奇怪的無條件捨去 Int 函數

2010-06-14 @ 14:31 in Windows

在 Access 的 VBA 中

     vInt = 77.32 * 0.5  ==> 38.66
     vInt = 77.32 * 0.5 * 100  ==> 3866
     vInt = Int(77.32 * 0.5 * 100)  ==> 3865  竟然少1
     vInt = Int(77.32 * 0.5 * 100) / 100 ==> 38.65   取小數第二位無條件捨去的結果,竟然少0.01

      vInt = 77.32 * 0.5 * 100  ==> 3866
      vInt = Int(vInt) / 100 ==> 38.66   將數值成 100 放在變數,再將變數取整數,再除於100,則結果就沒問題

不知這是什麼問題, 看來只好多用一條式子,再轉換,而不能一式到底,這是不是 呷緊弄破碗

迴響

Access 奇怪的無條件捨去 Int 函數 | 豬窩

I am regular reader, how are you everybody?
This post posted at this site is in fact fastidious.

作者 content hosting @ 04:15, 2020-07-27

Access 奇怪的無條件捨去 Int 函數 | 豬窩

It's not my first time to pay a visit this web
page, i am browsing this web page dailly and obtain fastidious data from here daily.

作者 skyscanner @ 21:37, 2020-07-27

Access 奇怪的無條件捨去 Int 函數 | 豬窩

I've been exploring for a bit for any high-quality articles or blog
posts on this kind of space . Exploring in Yahoo I finally stumbled upon this web site.
Reading this information So i'm satisfied to express that I have an incredibly just right uncanny feeling I found out exactly what I needed.
I such a lot unquestionably will make sure to do not overlook this website
and provides it a look regularly.

作者 cheap flights australia @ 11:29, 2020-07-28

Access 奇怪的無條件捨去 Int 函數 | 豬窩

First off I would like to say great blog!
I had a quick question that I'd like to ask
if you don't mind. I was interested to know how you center yourself and clear your thoughts before writing.

I've had trouble clearing my mind in getting my thoughts out.
I truly do enjoy writing however it just seems like the first
10 to 15 minutes tend to be wasted just trying to figure out how to begin. Any recommendations or tips?

Cheers! adreamoftrains best web hosting 2020

作者 adreamoftrains web hosting reviews @ 21:34, 2020-07-30

Access 奇怪的無條件捨去 Int 函數 | 豬窩

Thank you for another excellent article. Where else could anyone get that type of information in such
an ideal way of writing? I've a presentation next week, and I am on the search for such info.

作者 www.skyscanner.com @ 10:33, 2020-07-31
發表迴響
 authimage