In PHP, if you go above INT_MAX, it will use it as a float, allowing you to generate very large numbers (also non-decimal), is it possible to do this in C ++, or how do they store floating point / double precision numbers?
INT_MAX
The reason I want to compare large factorials, but something seems 80!too big for an unsigned integer.
80!
The language will not make a switch for you, but it has data types floatand double, which are usually 32-bit and 64-bit IEEE floats, respectively.
float
double
64- 80!, , . , : , GMP.
bigint, . float-int PHPs
-
class IntFloat { union { float fval; int ival; } val; bool foatUsed; public: setVal(float val) { this->val.fval = val; floatUsed = true; } setVal(int val) { this->val.ival = val; floatUsed = false; } //additional code for getters, setters, operators etc }
, PHP, .
int- wikipedia
PS:
" / ?"
, . ++ , PHP ( -, PHP-). , PHP .
GMP Big Integer, ++. . .
++ " ", , , int float (a double , IIRC 170!) , .
int
, fp, , , , . , fp- , ( , , ).
, bigint; Google.
__float128 ( ), , .
Source: https://habr.com/ru/post/1766624/More articles:which is the opposite of javascript match () - javascriptSaving structure to file - chow to detect the requested url contains a query string? - javaDetect words or any character after some matching pattern, regex pattern (vim) - vimЗаполнитель для заголовка С++ 0x в MSVС++ 2010 - c++https://translate.googleusercontent.com/translate_c?depth=1&pto=aue&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1766625/which-codec-does-flash-use-to-stream-video-from-web-cameras-to-rtmp-rtmfp-servers&usg=ALkJrhhPZ6_82UksEgEUV4DOQy3RCmCKrQIs it possible that the zip swf file will result in a larger file? - flexjavascript replace 2 characters - javascriptHTML5 WebSocket on iPhone 3GS - html5Are you at risk of choosing a custom indentation style for Java code? - javaAll Articles