• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 168
  • Last Modified:

Maths

Hi I'd like a

var
####:####;
begin

1.9 div 3.2 calculating


I don't know the var or how to divide. lol
0
eNarc
Asked:
eNarc
2 Solutions
 
MerijnBSr. Software EngineerCommented:
Like this?

var d: double;
begin
 d := 1.9 / 3.2;
end;

Open in new window

0
 
SteveBayCommented:
You beat me to it MerijnB... but I was going to add:

     ShowMessage(FormatFloat('0.0000',d));
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now