Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7954511
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T03:27:02+00:00 2026-06-04T03:27:02+00:00

Evening. I’ve got a question regarding base-16 computations in Java. I’m looking to compute

  • 0

Evening. I’ve got a question regarding base-16 computations in Java. I’m looking to compute pi with a reasonable algorithm to N digits with some constraint to the number of digits allowed (thinking something like 15-20). Eventually this will just be one function of a calculator later.

I’m not looking for ridiculous levels of precision, nor do I want help with the algorithm. I’m aware that there is a magic API method for it, but I’d rather do it myself.

The formula: Bailey–Borwein–Plouffe formula. From what I understand, it computes pi in hexadecimal.

So, what’s my issue? I’m not that good at Java. The classes I’ve taken (up to and including Data Structures) really only used the languages I know as a means to an end, without focusing on anything language-specific. I want to compute pi to the nth digit in hexadecimal, then convert that value to a String for display purposes.

Any suggestions on where to start with that? My experience with coding in java is about 20 weeks, and what I’m stuck on seems to be a Java-specific thing.

If I’m wrong anywhere, by all means point it out. I’m here to learn.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-04T03:27:03+00:00Added an answer on June 4, 2026 at 3:27 am

    I would implement your current algorithim using BigDecimal first. When this works to your satisfaction you can look at replacing the functionality BigDecimal provides (assuming you want to write your own)

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Evening guys, This may seem like a stupid question but im having some issues
Evening all, I've got a bit of an issue with some pop up images.
Evening all :) I'm looking to create a Java web application. I envisage that
Good evening everyone! I am working on learning some java and I have made
Last evening I did some housekeeping on our code repository - basically moved the
Good evening, I am working on a program where some application config info is
Good evening, I am developing a set of Java classes so that a container
Evening all. I have the following code that I need looking into - basically
Good evening. I am using Yii framework and mPDF library to generate some PDF
Yesterday evening I left the office with a running Java program written by me.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.