Einzelnen Beitrag anzeigen

Der schöne Günther

Registriert seit: 6. Mär 2013
6.176 Beiträge
 
Delphi 10 Seattle Enterprise
 
#5

AW: Template for numbers only

  Alt 5. Feb 2015, 14:19
Generics (or "templates") won't help you here because there is no way of constraining a type to "numbers only".

As others said, System.Math.SameValue is probably your best bet for checking equality of floats
  Mit Zitat antworten Zitat