answersLogoWhite

0


Best Answer

Function dec2rom(dec As Integer) As String

dec2rom = ""

While dec >= 1000

dec2rom += "M"

dec -= 1000

End While

If dec >= 900 Then

dec2rom += "CM"

dec -= 900

End If

If dec >= 500 Then

dec2rom += "D"

dec -= 500

End If

If dec >= 400 Then

dec2rom += "CD"

dec -= 400

End If

While dec >= 100

dec2rom += "C"

dec -= 100

End While

If dec >= 90 Then

dec2rom += "XC"

dec -= 90

End If

If dec >= 50 Then

dec2rom += "L"

dec -= 50

End If

If dec >= 40 Then

dec2rom += "XL"

dec -= 40

End If

While dec >= 10

dec2rom += "X"

dec -= 10

End While

If dec >= 9 Then

dec2rom += "IX"

dec -= 9

End If

If dec >= 5 Then

dec2rom += "V"

dec -= 5

End If

If dec >= 4 Then

dec2rom += "IV"

dec -= 4

End If

While dec

dec2rom += "I"

dec -= 1

End While

End Function

User Avatar

Wiki User

8y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What is the code in converting numbers to roman numerals in visual basics?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

What is a trigger function in visual basics?

hifoew;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;


Free mini projects using visual basics?

opipoiepoipieop


In visual basics what is information that is being passed to a function?

argument


How do you change the color of combo box in visual basics?

combobox.backcolor = (Name of colour)


What is caption as used in Visual basics?

Can you tell me what is an embedded application


How you make VB?

you dont make vb vb is visual basics and you make stuff in it


What is ms visual studio?

ms visual studio is combination of relational database and management systems of the database . it contain visual fox pro visual basics which help in constructing databases like reports forms tables.


Is visual basics only available in Microsoft Excel?

No, Visual Basic is a program on its own too, used to create programs. VBA is used in Excel and other programs (Visual Basic for Applications).


Can you use basics language with win Xp?

Yes. Both programming languages.. -Visual BASIC 6 -Visual BASIC.NET ...can be used on Windows XP platform.


What four areas must be assessed when converting a site to 508 compliance?

Mobility, Visual, Auditory, & Cognitive


Is there any software for converting c into MIPS?

Try Microsoft Visual C++ it has the option to compile for MIPS.


What is the correct coding for converting a string to a double in visual basic 2010?

Dim i as double = CDbl("12")