Swift - Find antilog for 4 digit Integer in iOS

0 votes

I need to find an antilog for 5995. I can get the actual antilog value when I am using anti logarithm book. but I could get infinite when I am using below code snippet in iOS. But the correct answer is 3977 How can I calculate the antilog value for 5995 using programatically. Share your valuable suggestions to get the rid of issue.

LOG

let number = 5995.0
let logOfNumber = log10(number)
print("logOfNumber ", logOfNumber)

ANTI LOG

let antilog = pow(10, number)
print("antilog ", antilog)

Although I tried the below link to find it.

How to find out antilog

enter image description here


 

Nov 8 in Mobile Development by gaurav
• 22,040 points
31 views

No answer to this question. Be the first to respond.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.

Related Questions In Mobile Development

0 votes
0 answers

Change English Number To Persian Numbers in Text Swift,IOS

Hi How can i replace english numbers ...READ MORE

Nov 8 in Mobile Development by gaurav
• 22,040 points
28 views
0 votes
0 answers
0 votes
0 answers
0 votes
0 answers
0 votes
0 answers
0 votes
0 answers

Accurate timing in iOS

I am looking at the 'Metronome' sample ...READ MORE

Nov 8 in Mobile Development by gaurav
• 22,040 points
33 views
0 votes
1 answer

Get User Group in Swift using AWS Cognito

The groups are exposed in the ID ...READ MORE

answered Nov 12, 2018 in AWS by Priyaj
• 58,100 points
951 views
0 votes
1 answer

URL Scheme for iOS Home App

I think you could try doing it ...READ MORE

answered Nov 16, 2018 in IoT (Internet of Things) by nirvana
• 3,130 points
498 views
0 votes
1 answer

iOS App : Porting Code to App

If you make a post, missing parameters ...READ MORE

answered Jan 18, 2019 in IoT (Internet of Things) by Shubham
• 13,490 points
230 views
0 votes
1 answer

swift for windows? xcode on windows? ?

Hi, @Aminegac, If you’re a little more technically ...READ MORE

answered Dec 4, 2020 in Others by Nikita
685 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP