https://github.com/shibatch/octcalc
A portable octuple-precision calculator
https://github.com/shibatch/octcalc
calculator-application cross-platform float256 linux-desktop mac-desktop octuple-precision windows-desktop
Last synced: about 1 month ago
JSON representation
A portable octuple-precision calculator
- Host: GitHub
- URL: https://github.com/shibatch/octcalc
- Owner: shibatch
- License: bsl-1.0
- Created: 2024-07-24T03:40:15.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-11-23T00:42:25.000Z (over 1 year ago)
- Last Synced: 2025-04-15T11:52:50.109Z (12 months ago)
- Topics: calculator-application, cross-platform, float256, linux-desktop, mac-desktop, octuple-precision, windows-desktop
- Language: C++
- Homepage:
- Size: 297 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
## OctCalc - A portable octuple-precision calculator
Original distribution site : https://github.com/shibatch/octcalc

### Introduction
This is a programmer-friendly portable calculator application, which
runs on Windows, Linux, and Mac. It can evaluate C-like expressions in
256-bit floating-point numbers through
[TLFloat](https://github.com/shibatch/tlfloat) library. It allows
users to choose between decimal and hexadecimal output formats for
integers and floating point numbers. In addition to the math functions
in math.h, various bitwise operations can be performed.
### Building on Linux and Mac
1. Check out the source code from our GitHub repository :
`git clone --recurse-submodules https://github.com/shibatch/octcalc`
2. Make a separate directory to create an out-of-source build :
`cd octcalc && mkdir build && cd build`
3. Run cmake to configure the project :
`cmake .. -DCMAKE_INSTALL_PREFIX=../../install`
4. Run make to build and install the project :
`make && make install`
### Building on Windows
1. Download and install Visual Studio Community 20XX.
* Choose "Desktop development with C++" option in Workloads pane.
* Choose "C++ CMake tools for Windows" in Individual components
pane.
* Optionally, choose "C++ Clang Compiler for Windows" in Individual
components pane.
2. Download and install WiX Toolset v3.
* https://wixtoolset.org/
3. Download and install Windows-MSVC version of Qt6.
* https://sourceforge.net/projects/fsu0413-qtbuilds/
* Extract the archive so that c:\opt\qt6\bin\designer.exe is seen.
4. Create a build directory, launch Developer Command Prompt for VS
20XX and move to the build directory.
5. Set path : `path %PATH%;"c:\opt\qt6\bin"`
6. Check out the source code from our GitHub repository :
`git clone --recurse-submodules https://github.com/shibatch/octcalc`
7. Run the batch file for building with MSVC.
`cd octcalc && winbuild-msvc.bat -DCMAKE_PREFIX_PATH=c:/opt/qt6 -DENABLE_WIX=True`
### License
The software is distributed under the Boost Software License, Version 1.0.
See accompanying file LICENSE.txt or copy at :
http://www.boost.org/LICENSE_1_0.txt.
Contributions to this project are accepted under the same license.
The fact that this software is released under an open source license
only means that you can use the current version of the software for
free. If you want this software to be maintained, you need to
financially support the project. Please see
[CODE_OF_CONDUCT.md](https://github.com/shibatch/nofreelunch?tab=coc-ov-file).
Copyright [Naoki Shibata](https://shibatch.github.io/) 2024.