Quantcast
Channel: VBForums - Visual Basic 6 and Earlier
Viewing all articles
Browse latest Browse all 21854

How can I force the 00.00 numeric format ?

$
0
0
For example

Dim sglX as single

sglX = 00.00


VB forces the 0# to show up, and the watch window shows 0 as the variable value. Is there a way to use Format() to do that ? I tried several iterations sglX = Format (sglX, "00.00")...Format (sglX, "##.##") They didn't seem to work. AArrgh ! Is there an option setting to stop that # from showing up ?

I'm trying to load up a sgl array incrementing .02 like this:

00.00
00.02
00.04
00.06...

Viewing all articles
Browse latest Browse all 21854

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>