Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Get the fourth hex value
Message
De
10/10/2012 09:03:32
 
 
À
10/10/2012 08:53:08
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
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:
01554644
Vues:
50
>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?


What is the relationship between the first pair and the second ? or in the above example, what is a correct second value for the second pair ?
Gregory
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform