Skip to content

Delphi implementation of int128 data type using operator overloading

Notifications You must be signed in to change notification settings

eStreamSoftware/delphi-int128

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Introduction

Delphi implementation of Int128 and UInt128 data type using operator overloading.

Valid range for Int128: -170,141,183,460,469,231,731,687,303,715,884,105,728 to 170,141,183,460,469,231,731,687,303,715,884,105,727

Valid range for UInt128: 0 to 340,282,366,920,938,463,463,374,607,431,768,211,455

Example

uses int128impl;

var a: Int128;

begin
  a := High(UInt64);   // 18446744073709551615
  a := 2 * a;
  WriteLn(a.ToString); // 36893488147419103230
  Readln;
end.

About

Delphi implementation of int128 data type using operator overloading

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages