#include <stdio.h> int main(void) { long double x,eps=1.0,a; scanf("%Lg",&x); do { a=eps; eps/=2.0; } while( x+eps>x); printf("Grid step: %Le",(long double)a); return 0; }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)