Skip to content

Instantly share code, notes, and snippets.

@run-dlang
Created October 6, 2023 08:36
Show Gist options
  • Save run-dlang/ad7b425636a2d0cca0c405e803397b62 to your computer and use it in GitHub Desktop.
Save run-dlang/ad7b425636a2d0cca0c405e803397b62 to your computer and use it in GitHub Desktop.
Code shared from run.dlang.io.
import std;
void main()
{
    real x = 3.14159265358979323846364e300;
    real y = -3.14159265358979323846364e3000L;
    float z = -3.14159265358979323846364e30L;
    float t = z^^2;
   
       
 
   writefln ("x = %.1g",x);
   writefln ("y = %.2g",y);
   writefln ("z = %.19g",z);
   writefln ("t = %.9g",t);
   
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment