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

  • SEARCH
  • Home
  • 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 9018929
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T04:39:20+00:00 2026-06-16T04:39:20+00:00

The following program print 1 for 100E-2 and gives 0 for 100*10**(-2) , that

  • 0

The following program print 1 for 100E-2 and gives 0 for 100*10**(-2), that means that
the operator exponent doesnot work for negative **, is that correct.
Thanks in advance

program testme

implicit none

print*,100E-2

print*,100*10**(-2)

end program
  • 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-16T04:39:21+00:00Added an answer on June 16, 2026 at 4:39 am

    You’ll notice that the second print statement prints 0 — no decimal pt, etc. Eg, integer zero. That’s because 10 by itself is an integer literal, and raising that to the negative 2 power correctly gives zero; multiplying it by integer 100 still gives integer zero.

    If you instead use

    print*,100*10.**(-2)
    

    you’ll get the answer you expect.

    The issue doesn’t arise with 100e-2 because any number expressed with scientific notation is a floating point (real) literal.

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

Sidebar

Related Questions

The following program generates a Z3 model that cannot be printed (that is, print
In the following program, DummyMethod always print 5. But if we use the commented
I would have expected the following C# program to only print EOF! once I
To my surprise in the following program the Eclipse console doesn't print while in
In the following program, why does hitting the a key print hello, world while
What does the colon mean in the following Perl program? MAIN: { print Hello\n;
Consider the following silly Perl program: $firstarg = $ARGV[0]; print $firstarg; $input = <>;
the following program needs to print the words First Second Third But because i
The expected output of the following C program is to print the array elements.
The following program does not work as I intended. #include <string.h> #include <stdio.h> int

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.