Fixed overflow help 
Author Message
 Fixed overflow help

Can any one help with this problem.

Field_a Fixed Dec (10,4)
Field_b Fixed Dec (9,7)
Field_c Fixed Dec (10,4)

Field_c = Field_a * Field_b

If the value to go into Field_c should round up on 0.00005

Any help would be greatly appretiated.

Cheers  



Tue, 14 Jan 2003 03:00:00 GMT  
 Fixed overflow help

Quote:

> Can any one help with this problem.

> Field_a Fixed Dec (10,4)
> Field_b Fixed Dec (9,7)
> Field_c Fixed Dec (10,4)

> Field_c = Field_a * Field_b

> If the value to go into Field_c should round up on 0.00005

The meaning of your question is not clear.

Rounding will not occur.  Always truncation.
If you want rounding, use the ROUND function.

Quote:
> Any help would be greatly appretiated.

> Cheers  



Wed, 15 Jan 2003 03:00:00 GMT  
 Fixed overflow help
What about :

field_c=multiply(field_a,field_b,10,4);

robin a crit:

Quote:

> > Can any one help with this problem.

> > Field_a Fixed Dec (10,4)
> > Field_b Fixed Dec (9,7)
> > Field_c Fixed Dec (10,4)

> > Field_c = Field_a * Field_b

> > If the value to go into Field_c should round up on 0.00005

> The meaning of your question is not clear.

> Rounding will not occur.  Always truncation.
> If you want rounding, use the ROUND function.

> > Any help would be greatly appretiated.

> > Cheers



Sat, 18 Jan 2003 03:00:00 GMT  
 
 [ 3 post ] 

 Relevant Pages 

1. Catch Fixed Point Overflow in C or C++

2. Getting fix-up overflow error

3. Urgent Help Requested: Heap Overflow

4. Repost Please help Page overflow

5. Clarion IDE Help (out of memory heap overflow)

6. please help: memory overflow

7. HELP Please String/Array overflow

8. Preprocessor table overflow, need help

9. Error C3048-Fatal Preprocessor Overflow help please?

10. Help - stack overflow!

11. Help needed on Overflow Control.

12. Help: IFC stack overflow

 

 
Powered by phpBB® Forum Software