How will you format a number in percetage format in vbscript?



How will you format a number in percetage format in vbscript?..

Answer / Deepak Vasistha

To format a number in percentage format, multiply the number by 100 and append '%'. For example: Dim num, percentage: num = 50 percentage = num & "%

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More VB Script Interview Questions

How to insert snapshot during manual scripting in QTP?

1 Answers  


What are the 2 ways in which a variable can be declared in the vbscript language?

1 Answers  


In our application qtp unable to indentify the menu items,we tried number of times to add objetcs into object repository but fail. through normal recording mode only objects going to add into repository but while running same recording script qtp showing a error like " unable to indentify the object". in repository there is no any properties and pro values for that object and also i tried with virtual object config also unable to find the object in application and in repository. Then what i have to do to identify menu objects????? can anybody hell me pls..............

2 Answers   Blue Star,


How to learn VB Script, Since iam working with QTP. So i need to learn VB script.

4 Answers   TCS,


hi, How will write a regular expression of date in VB scripting.

1 Answers  


How to check the particular window is exist or not with out using check points

2 Answers  


What is a class in CSS?

1 Answers  


Which object is used to work with the excel sheets in the vbscript language and what statement is used to create this object?

1 Answers  


Which operator can be used to do an xor operation in vbscript?

1 Answers  


Mention how to assign a date value to a variable?

1 Answers  


input values to accept 2 numbers & print the product, difference and sum using switch case

1 Answers   CSC,


what is the use of Data base check point ?

3 Answers  


Categories