Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9206265
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T00:08:21+00:00 2026-06-18T00:08:21+00:00

I am writing a VSTi plugin, I need a coefficient calculating for part of

  • 0

I am writing a VSTi plugin, I need a coefficient calculating for part of the output envelope.

Basically I am receiving the incorrect answer to the mathematical expression, I have simplified it into several steps and it is still incorrect. The same expression works on a calculator, but it will not work translated into code. I have been using the debugger and checking the contents of the variables and have found that 0.25 / 88200 is giving a result of 2.8344671201814060e-006 and not 0.00000283446712 as it should be. Similar maths earlier in the code functions as expected.

currentDecCoeff = 0.25 / 88200;
is making currentDecCoeff = 2.8344671201814060e-006 (and not 0.00000283446712)

All relevant variables are of double type, I have even entered it as numeric values (as above) rather than variables, and it still gives the wrong answer.

Can anyone shed any light as to why this may be happening, and provide some ideas on things to try or even a solution.

I can add the code in context if needed.
cheers

Ben

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-18T00:08:23+00:00Added an answer on June 18, 2026 at 12:08 am

    The notation e-006 means multiply what’s left of me by 10^(-6). So indeed your result is correct.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Writing a small command line tool, it would be nice to output in different
Writing a rather simple command line tool in ruby I need to report meaningful
writing a Java EE 6 application i need some help using the DatabaseServerLoginModule with
Writing a embeddable cross-browser plugin that is scriptable via JavaScript i am unsure how
Writing a Service that is running on IIS. Basically looks like this: void ProcessRequest(HttpContext
Writing a program for a project. I need to use a ListSelectionListener in order
Writing a function I must declare input and output data types like this: int
Writing my first silverlight application. I need to deliver some bitmap that the customer
Writing a plugin for [top-secret] (not really :P) and I decided that one best
Writing Classic ASP code in JScript has a lot going for it: more humane

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.