Skip to content

shibatch/octcalc

Repository files navigation

OctCalc - A portable octuple-precision calculator

Original distribution site : https://github.com/shibatch/octcalc

Screenshot

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 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.
  1. Download and install WiX Toolset v3.
  1. Download and install Windows-MSVC version of Qt6.
  1. Create a build directory, launch Developer Command Prompt for VS 20XX and move to the build directory.

  2. Set path : path %PATH%;"c:\opt\qt6\bin"

  3. Check out the source code from our GitHub repository : git clone --recurse-submodules https://github.com/shibatch/octcalc

  4. 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.

Copyright Naoki Shibata 2024.