forums.silverfrost.com Forum Index forums.silverfrost.com
Welcome to the Silverfrost forums
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Search found 34 matches
forums.silverfrost.com Forum Index
Author Message
  Topic: Precision question
Zach

Replies: 6
Views: 206

PostForum: General   Posted: Wed Mar 29, 2023 10:03 am   Subject:
I understand from your impressive example that summating a large population of real numbers in different ways, will result in different outcomes, whereas if you do exactly the same, but with double pr ...
  Topic: Precision question
Zach

Replies: 6
Views: 206

PostForum: General   Posted: Wed Mar 29, 2023 7:17 am   Subject:
Bingo. Thank you. Though my do-what requirement re this issue is limited, since I will only attempt financial applications, the absence of do-why teases.
  Topic: Precision question
Zach

Replies: 6
Views: 206

PostForum: General   Posted: Wed Mar 29, 2023 2:02 am   Subject:
program test
double precision::amount
amount = 1234567.25
write(*,100)amount
100 format(F13.2)
end program test

Up until seven positions before the decimal point, the decimals (cents) are nice ...
  Topic: Precision question
Zach

Replies: 6
Views: 206

PostForum: General   Posted: Tue Mar 28, 2023 11:07 pm   Subject: Precision question
The texts on precision make my head spin. Please, how do I declare a variable that has max 8 number positions before the decimal point and two after, plus additional positions for obligatory .'s and , ...
  Topic: Trim not working please comment
Zach

Replies: 2
Views: 153

PostForum: General   Posted: Tue Mar 28, 2023 1:16 pm   Subject:
Thank you, I will try what you say. Zach.
  Topic: Trim not working please comment
Zach

Replies: 2
Views: 153

PostForum: General   Posted: Tue Mar 28, 2023 10:57 am   Subject: Trim not working please comment
program test_trim
character(len=30)::test
test = " nuts"
print *,'X',trim(test)
end

In the posted text there were a lot of spaces before "nuts" however, ...
  Topic: A question re: format ( 4(2xI3) )
Zach

Replies: 8
Views: 328

PostForum: General   Posted: Sun Mar 26, 2023 4:51 pm   Subject:
I had already amended my response. Thank you again. I wasn't yet sensitised to seeing 'whatever' rather than whatever so I will pay better attention in future. Yes, they are character strings.
  Topic: A question re: format ( 4(2xI3) )
Zach

Replies: 8
Views: 328

PostForum: General   Posted: Sun Mar 26, 2023 3:39 pm   Subject:
Thank you Bill for "If any of the 4 integers are greater than 999", etc !
  Topic: A question re: format ( 4(2xI3) )
Zach

Replies: 8
Views: 328

PostForum: General   Posted: Sun Mar 26, 2023 2:58 pm   Subject:
Thank you for the program you responded with and the explanation contained.
  Topic: A question re: format ( 4(2xI3) )
Zach

Replies: 8
Views: 328

PostForum: General   Posted: Sun Mar 26, 2023 12:51 pm   Subject:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1. So from you I learn that:
4(2x,I3) pertains to four integers, each preceded by two spaces
Now re (6,'4(2x,I3)') what does the "6" stand for?
~~~ ...
  Topic: A question re: format ( 4(2xI3) )
Zach

Replies: 8
Views: 328

PostForum: General   Posted: Sat Mar 25, 2023 11:56 pm   Subject: A question re: format ( 4(2xI3) )
Re: format ( 4(2x,I3) )

I would like to know what the format ( 4(2x,I3) ) specifies.
Please only reply with a code example employing the format ( 4(2x,I3) ).
Please do not respond with a narrativ ...
  Topic: Format question
Zach

Replies: 7
Views: 275

PostForum: General   Posted: Sat Mar 25, 2023 2:45 pm   Subject:
Thank you for your help. I have ordered a textbook and am putting everything on hold until I have done some necessary studying.
  Topic: Format question
Zach

Replies: 7
Views: 275

PostForum: General   Posted: Sat Mar 25, 2023 9:42 am   Subject:
Yes I need a book. You are right. Learning from the Net has its limitations. I already have one on order. I don't have more than two decimals output in a financial program. So how many positions befor ...
  Topic: Format question
Zach

Replies: 7
Views: 275

PostForum: General   Posted: Sat Mar 25, 2023 9:12 am   Subject:
Re your code, for which I thank you, in a financial application I wouldn't end up with values that have d0 at the end. Could you propose an example without that d0 at the end? Indeed the numbers could ...
  Topic: Format question
Zach

Replies: 7
Views: 275

PostForum: General   Posted: Sat Mar 25, 2023 12:18 am   Subject: Format question
What would be the format string for a real, maximum positions before the decimal point: thirteen and two positions after the decimal point? What I am really after is displaying a financial number with ...
 
Page 1 of 3 Goto page 1, 2, 3  Next
All times are GMT + 1 Hour
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group