Photo Gallery Member List Search Calendars FAQ Ticket List Log Out


school project

 
Logged in as: Guest
arrSession:exec spGetSession 2,2,1334
 Active Users: There are 0 members and 0 guests.
 Users viewing this topic: none
 

 

 
  
  Printable Version
All Forums >> [Scripting] >> WSH & Client Side VBScript >> school project
  Do you like VisualBasicScript.com? Link to us and help spread the word about our forum. Thanks!
Page: [1]
Login
Message << Older Topic   Newer Topic >>
 school project - 9/7/2004 9:42:15 AM   
  yogai

 

Posts: 1
Score: 0
Joined: 9/7/2004
From:
Status: offline
There is a project at my school that i am doing. this requires you to write a program that when the user types a fraction in the form of n/d it changes that to a deciaml. Also, if the decimal is repeating, it is displayed in brackets, example: 1/3 = .(3)

how do you get an input box to recognize n/d as two separate values and how do you get the script to put a repeating decimal in the above form?
 
 
Post #: 1
 
 Re: school project - 9/8/2004 4:00:16 AM   
  LCoughdrop

 

Posts: 48
Score: 0
Joined: 8/23/2004
From:
Status: offline
you can have it input as a string. Then use the split function to separate n from d and redefine them as numbers.
just a thought at quick glance...

(in reply to yogai)
 
 
Post #: 2
 
 
 
  

If you found our site useful please link to us <a href="http://www.visualbasicscript.com">VisualBasicScript.com</a>.
All Forums >> [Scripting] >> WSH & Client Side VBScript >> school project Page: [1]
Jump to:





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts