Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Get the fourth hex value
Message
De
10/10/2012 08:53:08
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Get the fourth hex value
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows 7
Network:
Windows 2003 Server
Database:
MS SQL Server
Application:
Web
Divers
Thread ID:
01554642
Message ID:
01554642
Vues:
89
Lets say I have two hexadecimal values:

185A39
A5BDB5

Those represent hex colors.

Now, I define another two-set pair. The first value is:

31ABE1

I need to obtain the second value.

The first pair is what I need to base my formula on. So, I thought I would use the rule of three to obtain the second value of the second pair.

So, I did:
? 0x185A39/0xA5BDB5*0x31ABE1
I obtain 478298.07. This is decimal. I then need to put that into hexadecimal value. I found a program on the net and this gives 0x00077361. This does not seem to be the value I am looking for. Anyone would know the best approach to do that?
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform