Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {==============================================================================]
- Explanation: Returns the negative number of e. -999.9 to -999.9 OR 999.9 to -999.9 (+/- => -)
- [==============================================================================}
- function NegativeE(e: Extended): Extended;
- begin
- Result := (Abs(e) * -1);
- end;
- var
- x: Extended;
- begin
- ClearDebug;
- WriteLn(NegativeE(x));
- x := -123.456;
- WriteLn(NegativeE(x));
- x := (x + 500.987);
- WriteLn(NegativeE(x));
- end.
Advertisement
Add Comment
Please, Sign In to add comment