Jump to content
The simFlight Network Forums

jylhami

Members
  • Posts

    2
  • Joined

  • Last visited

Everything posted by jylhami

  1. I think you've got the parenthesis wrong there. You want to 'floor' the result of the division. You are dividing after you've done the 'floor' function. Try this: dmespdval = Math.Floor(vor1dmespd.Value / 10) Paul This did the trick, i use VB.Net and i'am still learning the basics, Thaks to you all. And the greatest thanks to You Pete, for making the homecockpit scene as it it today. I can't see how flight simulator could be this popular without your work with the FSUIPC. I'am a proud owner of registered copy of it, and now i'am using the FSUIPCclient to program my own stuff.
  2. Hi, I have been trying to code the DME speed kts the same way as showed on FS. I have problem showing my speed as rounded to the lower int as FS. If the DME speed is 120,6 it will be displayd as 121 in my program. code: Dim vor2dmespd As Offset(Of Short) = New FSUIPC.Offset(Of Short)(&H308) Dim dmespdval As Short dmespdval = Math.Floor(CInt(vor1dmespd.Value)) / 10 TextBox5.Text = Format(dmespdval, "000") Any help would be nice. Bw:Mika
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use. Guidelines Privacy Policy We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.