Skip to content
This repository has been archived by the owner on May 24, 2019. It is now read-only.
/ double Public archive

The task of Advanced Programming class on 2018/10/10. Implementation of IEEE 754 floating point number. Like `double` in C.

License

Notifications You must be signed in to change notification settings

Menci/double

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

double

Implementation of IEEE 754 floating point number. Like double in C.

The task of Advanced Programming class on 2018/10/10.

Update 2018/10/21: Add double I/O and expression evaluate, which is the task of Advanced Programming class on 2018/10/17.

Usage

Only a expression with numbers, operators in +, -, *, / and brackets is supported. All space characters in the input within a line will be ignored.

It will print as precise as possible and omit the extra zeros after decimal point.

$ ./compile_exec.sh
$ ./double <<< '0.1+0.2+(0.3+0.4)*2'
1.70000000000000017763568394002504646778106689453125

About

The task of Advanced Programming class on 2018/10/10. Implementation of IEEE 754 floating point number. Like `double` in C.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published