Lionmaru
Lionmaru

Reputation: 170

What does *-1 means?

I don't know how to find keyword for this (*-) in Google, and I don't know what is name. So I ask here.

Sample code :

StartDate:=IncMinute(FinishDate,TotalMinutes*-1);

What is TotalMinutes*-1 if I write in 'normal' syntax ?

Upvotes: 0

Views: 2852

Answers (1)

Allen Bauer
Allen Bauer

Reputation: 16862

It is multiplying TotalMinutes by -1... IOW, it looks like it is decrementing the Minutes.

Write it like this: TotalMinute * -1 and it is more clear. The * is the multiplication operator and the - is the unary minus operator.

Upvotes: 6

Related Questions