QueryCAT Logo
Search 5,000,000+ questions and answers.

Frequently Asked Questions

Why doesn't my floating-point comparison work?

Newbie Questions / Answers Updated! , C++ FAQ Lite
Why is cos(x) != cos(y) even though x == y? (Or sine or tangent or log or just about any other floating point computation) New!

What is so ''unsafe'' about floating point?

Infrequently Asked Questions in comp.lang.c
Have you tried EXAMINE STICK? The stick has a sharp point, which punctures the raft, which no longer floats. Don't bring the stick into the raft with you.

How can I make a floating point comparison function for use with qsort?

Frequently Asked Questions
Here is a simple example (called "Sort Floats"): // Sort a list of floating point values #define USE_TI89 // Compile for TI-89 #define USE_TI92PLUS // Compile for TI-92 Plus #define USE_V200 // Compile for V200 #define MIN_AMS 100 // Compile for AMS 1.00 or higher #define SAVE_SCREEN // Save/Restore LCD Contents #include <tigcclib.

Why doesn't AutoOpts handle floating point option arguments?

AutoGen's Frequently Asked Questions
Because handling it yourself is trivial, handling it in a fully integrated fashion is hard and I don't use floating point myself. Write your own callback routine. flag = { name = something; value = s; arg-type = string; arg-name = float; descrip = "floating point argument"; doc = "Example of an option with a floating point arg.

Why is floating point so inaccurate? Why doesn't this print 0.43?

Newbie Questions / Answers Updated! , C++ FAQ Lite
Disclaimer: Frustration with rounding/truncation/approximation isn't really a C++ issue; it's a computer science issue. However, people keep asking about it on comp.lang.c++, so what follows is a nominal answer. Answer: Floating point is an approximation. The IEEE standard for 32 bit float supports 1 bit of sign, 8 bits of exponent, and 23 bits of mantissa. Since a normalized binary-point mantissa always has the form 1.xxxxx..

Why don't floating point numbers work with the printf and scanf functions?

Frequently Asked Questions
In order to minimize size, versions of the printf and scanf functions without floating point support are linked by default. To enable floating point printf and scanf support, set the Floating Point I/O Supported property of your project to Yes.

How does Quick Comparison Chart work?

Frequently Asked Questions
You can create side-by-side comparisons of any three census areas or of any three buildings with any combination of unit types in those buildings.

What constitutes a floating point operation (a FLOP)?

The Aggregate: Frequently Asked Questions about KASY0
Obviously, any operation on a floating-point value, right? Well, yes and no.

Is floating point arithmetic supported?

SystemCrafter - FAQ
No, floating point is not supported by SystemCrafter SC Version 2.0. Floating point hardware implementations are extremely resource intensive and floating point algorithms can normally be more efficiently realised using integer arithmetic.

What if it doesn't work?

Lasik laser eye surgery from Ultralase: Frequently asked que...
After treatment, the eyes go through a natural recovery period. For 97% of patients, the results reach the target standard of vision - or better. A few people do not quite achieve the desired standard of vision - for these people, a re-treatment can be one option. Remember all your aftercare is backed up by our unique Lifetime Care Guarantee.

What the comparison rate doesn't tell you?

Bad Credit Loans and Mortgage FAQ
The comparison rate is just one of the many factors that should be used to help select your home loan, but don't assume the comparison rate by itself is going to tell you how much your loan is going to cost, or if the loan is right for you. Experienced borrowers know that there are many factors that should be taken into account when looking for the right loan, not just the interest rate and fees.

How does the point system work?

Disney Vacation Club, DVC Frequently Asked Questions
When you buy into the DVC, you purchase a certain number of points per year. The current price (retail) is $101 per point, for purchases at SSR -with a 150 point minimum for initial purchase. Let's say you purchased 200 points. You would be assigned a "use year" (that is the month of the year in which your points would recycle). For example, my use year is February, and I own 200 points. Every February, 200 points are available for me to use that year.

What are floating-point numbers?

Frequently Asked Questions (FAQ)
A floating-point number is a number that has a fractional part; it is written with a decimal point, e.g.: 2.5, 3.141, -5.99. Floating point numbers are distinguished from integers, which have no fractional part. In Java, there are two types of floating-point numbers, those of type float and those of type double. Numbers of type double have higher precision than those of type float. By default, we will use double for floating-point numbers in CS111.

How to convert floating point decimal to binary?

JavaChina: SCJP Questions & Answers by Roseanne Zhang (8...
In the integer part, you devide by 2. In the decimal part, you multiply by 2 Decimal Binary 2 10 4 100 8 1000 16 10000 0.5 0.1 0.25 0.01 0.125 0.001 0.0625 0.0001 ... You should get my point now.

How can I handle floating-point exceptions gracefully?

System Dependencies
On many systems, you can define a function matherr which will be called when there are certain floating-point errors, such as errors in the math routines in <math.h>. You may also be able to use signal (see question 19.38) to catch SIGFPE. See also questions 14.9 and 20.6b.

How can I store a floating point number into an integer?

COSC 2410: Computer Organization and Programming Lab Web Pag...
FIST stores the value in ST to the specified memory location or register. Temporary-real values in registers are converted to the appropriate integer, BCD, or floating-point format as they are stored. With FSTP, FISTP, and FBSTP, the ST register value is popped off the stack. Memory operands can be 32-, 64-, or 80-bit real numbers for FSTP, or 16-, 32-, or 64-bit integers for FISTP.

Can you change or enter floating point values?

Binary file editor for Windows, FAQ
You can enter a new floating point value in the fields of the Properties dialog. Just type the new value into the "value" field and press Enter (or Esc to abort). You can enter IEEE floating point values using the "IEEE" page or IBM floating point values using the "IBM FP" page. You can also change the byte-order using the "Big-endian" check box and enter 32-bit or 64-bit values depending on the format selected.

Why does a decimal point not indicate floating-point?

comp.lang.forth Frequently Asked Questions (1/6): General/Mi...
In the old days Forth did not have floating-point numbers; instead, fixed-point arithmetic was used, usually on double-cell numbers. So, a decimal point indicated a double number (the position of the decimal point was stored in the variable DPL for potential use by fixed-boint software). In ANS Forth, a decimal point at the end indicates a double-cell number, and an E in the number indicates a floating-point number (when BASE is decimal). All other ways to write numbers are system-dependent.
More Questions >>

© Copyright 2007-2012 QueryCAT
About • Webmasters • Contact