I can't get this to output how I want
- From: "Steven Platt" <me@xxxxxxxxxxx>
- Date: Mon, 2 May 2005 13:41:03 -0500
What is wrong with this thing? Maybe I am too used to PHP.
Const EXAMPLE_BYTES = 32210195968
Const BYTES_IN_MEG = 1048576
Const MEGS_IN_GIG = 1024
WScript.Echo EXAMPLE_BYTES & " is " & bytesToGigs( EXAMPLE_BYTES ) & " in
gigs"
Function bytesToGigs( someNumber )
WScript.Echo (someNumber / BYTES_IN_MEG) / MEGS_IN_GIG
End Function
I want the output to be something like:
32210195968 is 29.9980826377869 in gigs
Right now I get output like:
29.9980826377869
32210195968 is in gigs
Weird, huh? Thanks for the replies, guys.
-Steven-
.
- Follow-Ups:
- Re: I can't get this to output how I want
- From: Steven Platt
- Re: I can't get this to output how I want
- From: Matthias Jarling
- Re: I can't get this to output how I want
- From: Torgeir Bakken \(MVP\)
- Re: I can't get this to output how I want
- Prev by Date: Re: opsys.win32shutdown doesn't work on Domain controllers
- Next by Date: Re: I can't get this to output how I want
- Previous by thread: Re: opsys.win32shutdown doesn't work on Domain controllers
- Next by thread: Re: I can't get this to output how I want
- Index(es):
Relevant Pages
|
Loading